I have a button on a form that opens another form. However, a password must be entered before this form will open. The code was placed in the On_Click event of the button:
Dim x
x = InputBox("Enter Password", "Password")
If x = "acct2001" Then GoTo DisEntry
MsgBox ("Incorrect Password, Disposition Form Will Not Open")
GoTo EndPass
DisEntry:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Disposition Entry"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command107_Click:
Exit Sub
Err_Command107_Click:
MsgBox Err.Description
Resume Exit_Command107_Click
EndPass:
The problem is that when the password is typed in, the actual letters come up. Is there code I can add that will make the password be astericks when the user types it in??
Dim x
x = InputBox("Enter Password", "Password")
If x = "acct2001" Then GoTo DisEntry
MsgBox ("Incorrect Password, Disposition Form Will Not Open")
GoTo EndPass
DisEntry:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Disposition Entry"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command107_Click:
Exit Sub
Err_Command107_Click:
MsgBox Err.Description
Resume Exit_Command107_Click
EndPass:
The problem is that when the password is typed in, the actual letters come up. Is there code I can add that will make the password be astericks when the user types it in??