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
Expand|Select|Wrap|Line Numbers
- 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:
Expand|Select|Wrap|Line Numbers
- VBA.Environ (UserName)
- If Forms!frmMain1.UserName.Value = tblReviewNames.NTID Then
- DoCmd.OpenForm "frmMain"
- Else
- Exit Sub
- End If
- End Sub
Expand|Select|Wrap|Line Numbers
- If Forms!frmMain1.UserName.Value = tblReviewNames.NTID Then