I tried to use dlookup on my login form with a very simple 2 text fields UserName/PassWord table (Login). It has only 3 records (3 sets of user name and password) But dLookup keeps returning the password from the first record no matter what and which username I typed in (or uName values is).
pW = DLookup("PassWord", "Login", "UserName=" & "uName")
Is it something I did wrong?
Also, all the docmd functions are not responding (as if they're not there). for example, DoCmd OpenForm, or DoCmd Close... do I need to set up something before I could use the docmd?
Please help. Thanks
pW = DLookup("PassWord", "Login", "UserName=" & "uName")
Is it something I did wrong?
Also, all the docmd functions are not responding (as if they're not there). for example, DoCmd OpenForm, or DoCmd Close... do I need to set up something before I could use the docmd?
Please help. Thanks