G
Greg Staley
I tried this, but any word I enter, or even enter by itself, gets past the
input box and opens the form. Anyone else have an idea as to what I can
do? I am just trying to keep the ID 10 Ts from accesing the form, nothin
serious.
Greg
A crude way of doing this would be as follows:
Private Sub Form_Load()
Dim sPassWord As String
Const sAccess = "Password"
sPassWord = InputBox("Please enter the password for
the form", "Login")
If sPassWord <> sAccess Then
DoCmd.Close acForm, "form Name", acSaveNo
End If
End Sub
input box and opens the form. Anyone else have an idea as to what I can
do? I am just trying to keep the ID 10 Ts from accesing the form, nothin
serious.
Greg
A crude way of doing this would be as follows:
Private Sub Form_Load()
Dim sPassWord As String
Const sAccess = "Password"
sPassWord = InputBox("Please enter the password for
the form", "Login")
If sPassWord <> sAccess Then
DoCmd.Close acForm, "form Name", acSaveNo
End If
End Sub