In my query I'm trying to reference to a numeric (autonumber) field of my
form but I can't get it to work. Error message: "Datatypes don't match in
the criterium expression."
This is the particular line that doesn't work:
strSQL = strSQL & "WHERE (((Contact.ID_contact)='" & Me.ID_contact] & "'));"
When I replace '" & Me.ID_contact] & "' by 1 it works. I tried removing and
replacing the quotes in all kinds of ways, but no luck.
The '" & Me.ID_contact] & "' has always worked for me on text fields.
Can someone enlighten me?
Thanks in advance,
john