Code:
int MaxRows = 0; int inc = 0; private void Form2_Load(object sender, EventArgs e) { con = new System.Data.OleDb.OleDbConnection();
Could be either/both:
1)open and close a connection around the update statement
2)set the updatecommand property of the adapter. see msdn page