The following code on form_load does ask for a password and opens the desired form if the password is entered correctly. However, if no password or the incorrect password is entered, I get the message box stating the user does not have access to the desired form but then it opens that form anyway.
Please advise,
Jason
Please advise,
Jason
Code:
Dim PassWord As String
If PassWord - admin1234" Then
doCmd.openForm "frmAdminMenu"
Else
MsgBox ("Access Denied")
End If
End Sub
Comment