string vfpSqlUpdate = ""; OleDbConnection myConn = new OleDbConnection(); myConn.ConnectionString = "Provider=vfpoledb;Data Source=C:\\my.dbc"; // query string to push through the vfpoledb provider vfpSqlUpdate = "update mytable set myfield = + " + myValue.ToString(); // create the command, assign it the string created above OleDbCommand vfpUpdateCommand = new OleDbCommand( vfpSqlUpdate, myConn); //open the connection myConn.Open(); // execute the update vfpUpdateCommand.ExecuteNonQuery(); //close the connection myConn.Close();