OleDbConnection connect = new OleDbConnection(@"path.mdb"); OleDbCommand cmd = new OleDbCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "UPDATE Table2 set check=2 whene key=asd "; cmd.Connection = connect; connect.Open(); cmd.ExecuteNonQuery(); connect.Close();
cmd.CommandText = "UPDATE Table2 set check='2' where key='asd'";
check
key
cmd.CommandText = "UPDATE Table2 set check='2' where key='asd' ";
cmd.CommandText = "UPDATE Table2 set check=2 where key='asd' ";
cmd.CommandText = "UPDATE Table2 set check=2 where key='"+richTextBox2.Text+"' ";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)