using System.Data.OleDb;
string dbpath = AppDomain.CurrentDomain.BaseDirectory + "\\data\\database1.mdb";
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + dbpath);
string sql = "delete from 表 where id=1";
OleDbCommand cmd = new OleDbCommand(sql, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
用上一个回答的代码,你再在窗体中加入一个button,调用这个方法就可以了