Click to See Complete Forum and Search --> : Read but not Update Access Database


vonkrueger
March 26th, 2009, 01:13 AM
From within a C# application, I am using a database writer class to write to and from a Microsoft Access database. For some reason, the Read method works, but not Update.

Read sends the following command:

SELECT * FROM tblInspection WHERE ID = @ID

While Update sends:

UPDATE tblInspection SET [templateID]=[@templateID],[propertyID]...[@imageCount],[dTime]=[@dTime] WHERE [ID]=[@ID]


I've checked many times to make sure the syntax and parameters are correct. When I call ExecuteNonQuery, zero rows are returned from the Update (and the database is not changed), but when I Read, the object is returned no problems. Does anyone have an idea about what I'm doing wrong?

Thanks in advance.

vonkrueger
March 26th, 2009, 07:03 AM
I should add that when I plug these queries into the Microsoft Access engine through openoffice.org base they both work fine. =[