in my query ms access database not updated.
here is my code
cn.Open();
OleDbCommand cmd = new OleDbCommand("update GENERALBILLING set due=@due where invoicenumber=@invoicenumber", cn);
cmd.Parameters.AddWithValue("@due", due);
cmd.Parameters.AddWithValue("@invoicenumber", invoicenumber);
cmd.ExecuteNonQuery();
cn.Close();
Here invoicenumber is auto increament primary key
Ms access database not updated
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Abhishek JainRank #1,062 · 1.8K reputationPosted Sep 6, 2013, 3:11 AM EDT
Regards
AJ
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 6, 2013, 3:52 AM EDT
plz provide what exception you are getting. and mention in which line.