Inserted Record not getting saved in MS-Access Database through C#.NET 2008 -


Hi,

I am creating a Windows application in C #. met. When I enter a record in the MS Access database, it indicates that the record is saved, there is no error, but when I reload the project, the record I added was not found in the database. help please.

Here's the code, I am using:

  dataset ds13 = new dataset (); OledbyDatard DR 13; Oleady Commands CMD 13 = New OLEDB Commands (); Cmd13.CommandType = CommandType.Text; Cmd13.CommandText = "Enter Due_Party VALUES (@ A, B, @ C, @ D, @ E, @ F, @ g)"; Cmd13.Parameters.Add ("@A", SqlDbType.Text) .Value = textBox11.Text; Con.ConnectionString = constr; CMD13 Connection = Conn .; Con.Open (); Cmd13.ExecuteNonQuery (); Con.Close ();   

Regards Sunil Kumar

Check for how long you are involved ? I only ask because because of the delay in using ADO, something sticks in my mind but before I go to 'A' guaging, you can tell me

edited Do: Okay it can be the same.

I know ADO is talking about and not ADO.Net but this idea can be similar. If you check again later, what record do you see?

Comments