I am creating a forgot password form, where the users have to enter the correct login id, secret question and answer in order to return their password.
tblUsers fields:
Login ID
Password
Secret Question
Secret Answer
Forgot password form consist of textbox and a command button:
login id [loginID_Text]
secret question [SecretQ_Text]
secret answer [SecretA_Text]
password [Pass_Text]
ok [ok_combo]
Under the [Pass_Text], i included an expression in the control source to return the password as follows:
[loginID_Text] & [SecretQ_Text] & [SecretA_Text]=DLookUp("[tblUsers]![Password]","tblUsers","Forms![Forgot Password]![loginID_Text]=[tblUsers]![Login ID]" And " [SecretQ_Text]=[tblUsers]![Secret Question]" And " [SecretA_Text]=[tblUsers]![Secret Answer]")
However, this does not work. Can anyone help on this? or any other way that i can return the password by using only macro (no VBA).
Thanks all in advance.