O
Oli
Hi Folks
I have a rather annoying problem.
I have a form (frm_notes) and when the data has been inputted a
CommandButton is clicked to insert some extra data along with the record.
However, when this button is clicked I am getting:-
Run-time error '3464':
Data type mismatch in criteria expression
I press END. The annoying thing is, despite the error, it seems to go ahead
and work.
The relevate code is:
--------------------------------------------------
DoCmd.SetWarnings False
sqlString2 = "UPDATE tbl_notes SET ContactID='" & Me.ContactID.Value & "'
WHERE NoteID='" & Me.NoteID.Value & "';"
MsgBox sqlString2
DoCmd.RunSQL (sqlString2)
DoCmd.Close
DoCmd.OpenForm "frm_Contacts"
--------------------------------------------------
Anyone see any problems?
TIA
Oli
I have a rather annoying problem.
I have a form (frm_notes) and when the data has been inputted a
CommandButton is clicked to insert some extra data along with the record.
However, when this button is clicked I am getting:-
Run-time error '3464':
Data type mismatch in criteria expression
I press END. The annoying thing is, despite the error, it seems to go ahead
and work.
The relevate code is:
--------------------------------------------------
DoCmd.SetWarnings False
sqlString2 = "UPDATE tbl_notes SET ContactID='" & Me.ContactID.Value & "'
WHERE NoteID='" & Me.NoteID.Value & "';"
MsgBox sqlString2
DoCmd.RunSQL (sqlString2)
DoCmd.Close
DoCmd.OpenForm "frm_Contacts"
--------------------------------------------------
Anyone see any problems?
TIA
Oli