A
Aranyx
I've been working on this one for a while and it has me completely
stumped. I have a form with several text boxes in it and a submit
button. When the submit button is pressed, I create a command variable
and do an update statement to one of my tables. However, I keep
getting an error of "Data Type Mismatch in Criteria Expression". I
looked at my criteria (which is matching to an autonumber field) and
didn't see any single quotes. When I did a msg box and had it output
my SQL, it resulted in:
UPDATE tblAssets SET [LabStaffUse] = 'Disposed', [Status] =
'Disposed-Internal', [DateModified] =
DATE(),[PhysicalInventoryDate]=DATE(),[UserUpdated] = 'XXXX'
WHERE [ID] = 1
I don't have quotes around the 1, so I don't know why it would result
in a data type mismatch in criteria expression. If anyone has run into
something similar and could help me out, I would appreciate it.
Thanks
stumped. I have a form with several text boxes in it and a submit
button. When the submit button is pressed, I create a command variable
and do an update statement to one of my tables. However, I keep
getting an error of "Data Type Mismatch in Criteria Expression". I
looked at my criteria (which is matching to an autonumber field) and
didn't see any single quotes. When I did a msg box and had it output
my SQL, it resulted in:
UPDATE tblAssets SET [LabStaffUse] = 'Disposed', [Status] =
'Disposed-Internal', [DateModified] =
DATE(),[PhysicalInventoryDate]=DATE(),[UserUpdated] = 'XXXX'
WHERE [ID] = 1
I don't have quotes around the 1, so I don't know why it would result
in a data type mismatch in criteria expression. If anyone has run into
something similar and could help me out, I would appreciate it.
Thanks