Validate username and password in a Button

puuts

New member
Local time
Today, 02:09
Joined
Jan 20, 2014
Messages
8
Hello Gurus,

I'm new in access and I would like to ask how can i validate the username and password in a textbox? I have a frmLogin and frmMain.

I have also a table called 'tblUsers' with column fields 'username and password'.

If username is not found in database then a msgbox will prompt 'Username is not yet created'.

If username is okay and password is incorrect then msgbox will prompt 'Incorrect password'

If username and password is okay, then a msgbox will prompt 'Successfully login' and will continue to frmMain.

Thanks in advance Gurus!
 
You have the logic you want to use, what exactly is the problem?
 
Hello jdraw,

Thanks for the reply, my problem is the coding of the logic as I'm new to database :(
 

Users who are viewing this thread

Back
Top Bottom