I have a table, tblEmp, which holds fields [USERNAME], and [PASSWORD].
I also have a form, frmAuthenticate, with 2 unbound text boxes...one for the username and one for password. What I want to happen is that when I input a username and associated password, the name entered will be matched up to a [USERNAME] in tblEmp, then once a match is found it will also verify that what was entered in the text box, matches what's in the record. Once the two fields are verified to be equal, another form should open.
I don't know VBA well, but an idea of what the pseudo-code behind the "OnClick" action would be:
If [Text in username field in frmAuthenticate = a username in tblEmp]
And
If [Text in password field in frmAuthenticate = password for username specified above]
Then [Open frmOncRegMain]
This is how it should work, but I have no idea of how to properly code that. Any help is appreciated.
I also have a form, frmAuthenticate, with 2 unbound text boxes...one for the username and one for password. What I want to happen is that when I input a username and associated password, the name entered will be matched up to a [USERNAME] in tblEmp, then once a match is found it will also verify that what was entered in the text box, matches what's in the record. Once the two fields are verified to be equal, another form should open.
I don't know VBA well, but an idea of what the pseudo-code behind the "OnClick" action would be:
If [Text in username field in frmAuthenticate = a username in tblEmp]
And
If [Text in password field in frmAuthenticate = password for username specified above]
Then [Open frmOncRegMain]
This is how it should work, but I have no idea of how to properly code that. Any help is appreciated.