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)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
DLookup("Signature", "Employees", "ProviderNumber = '" & provnum & "' and Password = '" & pass &"'")