abbaddon223
Registered User.
- Local time
- Yesterday, 17:39
- Joined
- Mar 13, 2010
- Messages
- 162
Hi,
I have the following SQL code running via VBA. I keep getting a datatype mismatch error, howevr the field I am referencing, and using as the qualifyer to update the record is Number.
Any help greatly appreciated!!!!
Dim Ref As String
Ref = Forms!Frm_WB_Login.Form!Frm_Callbacks_Due![callback_id].Value
Dim MySQL As String
MySQL = "UPDATE vicidial_callbacks SET vicidial_callbacks.status = 'INACTIVE' "
MySQL = MySQL & "WHERE vicidial_callbacks.callback_id = '" & Ref & "';"
DoCmd.RunSQL MySQL
I have the following SQL code running via VBA. I keep getting a datatype mismatch error, howevr the field I am referencing, and using as the qualifyer to update the record is Number.
Any help greatly appreciated!!!!
Dim Ref As String
Ref = Forms!Frm_WB_Login.Form!Frm_Callbacks_Due![callback_id].Value
Dim MySQL As String
MySQL = "UPDATE vicidial_callbacks SET vicidial_callbacks.status = 'INACTIVE' "
MySQL = MySQL & "WHERE vicidial_callbacks.callback_id = '" & Ref & "';"
DoCmd.RunSQL MySQL