M
Miro
I created a field in a db called "Password"
If i do that, the Update row command throws an exception error.
If I call the field PWord then it works great.
Is this a reserved word for an access db? or something?
Are there others?
Thanks,
Miro
====exception code
OleDbException was unhandled
Syntax error in INSERT INTO statement.
=====
=======code for updating db
rwUser = dtUser.NewRow()
Debug.WriteLine("whats the password =" + strPassword)
rwUser("UniqueNumber") = "0001" 'Database is empty at this point,
"0001" for debug purposes.
rwUser("FirstName") = strFirstName
rwUser("LastName") = strLastName
rwUser("Login") = strLogin
'rwUser("Password") = "Hello" 'Update line ( below ) fails
'rwUser("Password") = strPassword 'Update line ( below ) fails
rwUser("PWord") = strPassword 'Does not fail
rwUser("PhoneNumber") = strPhoneNumber
dtUser.Rows.Add(rwUser)
'Try
daDataAdapter.Update(rwUser) 'Will fail if the field is "Password"
========
If i do that, the Update row command throws an exception error.
If I call the field PWord then it works great.
Is this a reserved word for an access db? or something?
Are there others?
Thanks,
Miro
====exception code
OleDbException was unhandled
Syntax error in INSERT INTO statement.
=====
=======code for updating db
rwUser = dtUser.NewRow()
Debug.WriteLine("whats the password =" + strPassword)
rwUser("UniqueNumber") = "0001" 'Database is empty at this point,
"0001" for debug purposes.
rwUser("FirstName") = strFirstName
rwUser("LastName") = strLastName
rwUser("Login") = strLogin
'rwUser("Password") = "Hello" 'Update line ( below ) fails
'rwUser("Password") = strPassword 'Update line ( below ) fails
rwUser("PWord") = strPassword 'Does not fail
rwUser("PhoneNumber") = strPhoneNumber
dtUser.Rows.Add(rwUser)
'Try
daDataAdapter.Update(rwUser) 'Will fail if the field is "Password"
========