Dick7Access
Dick S
- Local time
- Today, 00:20
- Joined
- Jun 9, 2009
- Messages
- 4,325
I have the following code on “On Load”. If I enter the wrong PW it gives me the, Wrong Pass Word Virginia
But if I hit ok it opens the form anyways. What am I missing?
But if I hit ok it opens the form anyways. What am I missing?
Code:
Private Sub Form_Load()
Dim PassWord As String
PassWord = InputBox("Enter You Know What Virginia")
If PassWord = "xxx" Then
' Open Form
DoCmd.OpenForm "frmBap411"
DoCmd.Maximize
Else
MsgBox ("Wrong Pass Word Virginia.")
End If
End Sub