SQL = "UPDATE OrderProcessing SET OrderProcessing.Complete = 1 Where CarID = " + lngVId
I get a type mismatch error as in the variable SQL (of type string) does not get that whole update query string.
lngVid is datatype Variant/Long
CarID is Datatype Number
If i remove the variable at the end and hardcode it to end like...Where CardID = 222", then it works.
Also if instead of lngVId, I put in some variable of datatype Long, it doesn't work.
Can someone explain why this is happening?
I get a type mismatch error as in the variable SQL (of type string) does not get that whole update query string.
lngVid is datatype Variant/Long
CarID is Datatype Number
If i remove the variable at the end and hardcode it to end like...Where CardID = 222", then it works.
Also if instead of lngVId, I put in some variable of datatype Long, it doesn't work.
Can someone explain why this is happening?
