Hello all,
I am creating a login to a MS Database I created. Every user has an NTID and password. The password changes every 30 days (company policy). Anyway, I want a way where before you go into the program it pops up and wants you to enter your NTID password. I know you can do this
for the username. But I really have no clue how to do the password. Any suggestions?
Also I would like to add. I have a table that has all of the users in it along with their NTID (Username). What kind of code can I write that checks to see if their current username = the tbl username?
What I have now looks like this:
It keeps getting hung up on the
I have written it 2 different ways. I have a textbox on the main form that shows the NTID in it.
I am creating a login to a MS Database I created. Every user has an NTID and password. The password changes every 30 days (company policy). Anyway, I want a way where before you go into the program it pops up and wants you to enter your NTID password. I know you can do this
Code:
Environ("UserName")
Also I would like to add. I have a table that has all of the users in it along with their NTID (Username). What kind of code can I write that checks to see if their current username = the tbl username?
What I have now looks like this:
Code:
VBA.Environ (UserName) If Forms!frmMain1.UserName.Value = tblReviewNames.NTID Then DoCmd.OpenForm "frmMain" Else Exit Sub End If End Sub
Code:
If Forms!frmMain1.UserName.Value = tblReviewNames.NTID Then
Comment