0

Using Visual Studio 2012

I had this SQL for updating an access database with correct naming of fields/parameters/etc

str = "UPDATE Users SET Password=? WHERE Username=?"

And I received a "syntax error in SQL statement" error.

Then, through some tinkering, I made this, which works:

str = "UPDATE Users SET Passwor=? WHERE Username=?"

My question is why will it not work if I use "Password" but will with "Passwor". I tried with several other fields and they all seem to work except "Password". Can someone explain this to me?

JJC
  • 25
  • 2
  • 8

0 Answers0