Hi,
Can someone help me? Thank you in advance.
Even though I know that MS Access does provide the security, but I also want to create a login form that verifies the users by their username and password.
So, I created a table called tblLogin which has two fields: Username, Password. I also created a Login form that has a cboUsername, txtPasswd, and cmdLogin.
My goal is to ask the user to select the username from the cboUsername, key in the password in the txtPasswd, and press the cmdLogin. The code then verifies this user by matching the select cboUsername.value and txtPasswd.value with the username and password in the tblLogin.
My reasons for developing this capability because 1) I have many subforms within a form and I want to restrict the read & write capability based on the user validation. 2) I also want to restrict certain user from accessing certain forms in my DB.
Again, thank you in advance for your time and help.
V/R,
Diem
Can someone help me? Thank you in advance.
Even though I know that MS Access does provide the security, but I also want to create a login form that verifies the users by their username and password.
So, I created a table called tblLogin which has two fields: Username, Password. I also created a Login form that has a cboUsername, txtPasswd, and cmdLogin.
My goal is to ask the user to select the username from the cboUsername, key in the password in the txtPasswd, and press the cmdLogin. The code then verifies this user by matching the select cboUsername.value and txtPasswd.value with the username and password in the tblLogin.
My reasons for developing this capability because 1) I have many subforms within a form and I want to restrict the read & write capability based on the user validation. 2) I also want to restrict certain user from accessing certain forms in my DB.
Again, thank you in advance for your time and help.
V/R,
Diem