Link to home
Start Free TrialLog in
Avatar of BangorCC
BangorCC

asked on

Dlookup With 2 variable

i need to do a dlookup using 2 variable so that i can call this from a function
however i keep getting data mismatch errors
this is what i have and both variables are strings
DLookup("Signature", "Employees", "ProviderNumber = " & provnum & " and Password = " & pass)
ASKER CERTIFIED SOLUTION
Avatar of OHIS
OHIS
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, I missed both vars are string.  It should look like this:

DLookup("Signature", "Employees", "ProviderNumber = '" & provnum & "' and Password = '" & pass &"'")