Runtime error 13 - type mismatch.
I get the above error when I create a text box
control on a form named [UserID] and I run
the following code in a sub on that same form...
If DLookup("[UserID]", "tblUsers", "[UserID]=Forms!Form10!UserID")
Then
tblUsers has a 6-char text field in it named [UserID]. What can Access
be thinking to tell me the data in the textbox and the data in the
table field cannot be compared because of incompatible data types?
This has always bugged me about Access. I believe it should be
possible to compare the string in Forms!Form10!UserID with those
in the table field tblUsers.[UserID].