I am trying to update a record in an access database table that has the name "dietentries".
The fields I am updating are Time, Food, Quantity.
My where clause is based on an ID that is a long integer.
I have tried casting the ID to both Cint and Clng.
My update string is:
"update dietentries set Time = '5AM', Food = 'Bagel', Quantity = '1' where ID = "
My execute statement is:
conn.Execute(updatestring & ID)
Result looks like:
update dietentries set Time = '5AM', Food = 'Bagel', Quantity = '1' where ID = 1
Any Ideas?
Hobanero
The fields I am updating are Time, Food, Quantity.
My where clause is based on an ID that is a long integer.
I have tried casting the ID to both Cint and Clng.
My update string is:
"update dietentries set Time = '5AM', Food = 'Bagel', Quantity = '1' where ID = "
My execute statement is:
conn.Execute(updatestring & ID)
Result looks like:
update dietentries set Time = '5AM', Food = 'Bagel', Quantity = '1' where ID = 1
Any Ideas?
Hobanero