I am having an issue using a Dlookup this is the line that it is failing on.
It seems to be doing what i want if the code i put in doesn't match, but if it does match whats in the SOSLOCS query then it gives me a type mismatch error. Any ideas? Thanks!
Code:
If DLookup("loc_code", "SOSLOCS", "loc_code = Text4") Then