删除要这个就行了.
[CODE]string strCon = @" Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source = \\tongxunlu.mdb " ;
OleDbConnection myConn = new OleDbConnection ( strCon ) ;
myConn.Open ( ) ;
string strDele = "DELETE FROM myfriend WHERE xingming= '" + txtName.Text+"'" ;
OleDbCommand myCommand = new OleDbCommand ( strDele , myConn ) ;
//从数据库中删除指定记录
myCommand.ExecuteNonQuery ( ) [/CODE]
后面的不用了。
飘过~~