Hi All
I have some VBA code that gives this error :
3464 Data Type Mismatch In Criteria Expression
Am I right in thinking that I need to place single quotes somewhere around " & Me!txtCUSTOMERNUMBER - I just don't know where...
Any help greatly appreciated !
Many thanks.
I have some VBA code that gives this error :
3464 Data Type Mismatch In Criteria Expression
Code:
UpDateAuditTo = "UPDATE TblClients SET TblClients.Audit_to = #" & Format(Me!MaxPostingDate, "mm/dd/yyyy") & "# WHERE TblClients.CUSTOMERNUMBER = " & Me!txtCUSTOMERNUMBER
DoCmd.RunSQL UpDateAuditTo
Am I right in thinking that I need to place single quotes somewhere around " & Me!txtCUSTOMERNUMBER - I just don't know where...
Any help greatly appreciated !
Many thanks.