error in query

Azhar.iq

Registered User.
Local time
Tomorrow, 01:43
Joined
Apr 10, 2015
Messages
18
Can someone please find out what is the syntax error in update query

DoCmd.RunSQL ("Update TblPaymentInfo set ([PaymentForVehicle]) = " & txtVehicleRouteCost.Value & " where ([BookingID]) = " & bookID & ";")

runtime error '3144'
 
I'd get rid of all the parentheses for starters. What are the data types of the field being set and the field in the criteria?
 
I'd get rid of all the parentheses for starters. What are the data types of the field being set and the field in the criteria?

Yup, parentheses did it for me.
 
Glad it worked for you.
 

Users who are viewing this thread

Back
Top Bottom