error 3464

swarv

Registered User.
Local time
Today, 22:12
Joined
Dec 2, 2008
Messages
196
Hi all,

I am getting error:

Data type mismatch in criteria expression. (Error 3464)

the code that creates it is:

Code:
updateuser2 = "UPDATE entitlement SET Entitlementfld = '" & holidaytotal & "'  WHERE id = '" & usersidnumber & "' AND yearfld = '" & nine & "'"

holidaytotal, usersidnumber and nine are all dim'd as integers.
in the entltement table the data type of the fields are all number.

Has anybody got any ideas as to why this error is popping up?

Thanks

Martin
 
You don't use quotes around numbers. Change this:
WHERE id = '" & usersidnumber & "' AND yearfld = '" & nine & "'"

to this:
WHERE id = " & usersidnumber & " AND yearfld = " & nine
 
cheers bob

serves me right copying from an insert into statement using strings

cheers again
 

Users who are viewing this thread

Back
Top Bottom