K
Kyle Friesen via AccessMonster.com
Hello,
I have a password protected form that is working great thanks Access
Monster and MSN help. However, one missing piece that I tried to figure out
is that I want to add a exit option to the password form. Basically for
users that didn't intend on opening the password protected form.
here is the code I have for the Null value notification. Can I add some
sort of If IsNull then CloseForm line instead of the "try again"?
Any sort of attempt brings up "Invalid use of Null" error message that may
confuse users.
****
Private Sub CheckPassword_Click()
If IsNull(Forms!frmPassword!Text0.Value) Then
MsgBox "You Must Enter A Password. Try Again."
Me!Text0.SetFocus
Else
MyPassword = Me!Text0.Value
DoCmd.Close acForm, "frmPassword"
End If
End Sub
****
Thanks!
I have a password protected form that is working great thanks Access
Monster and MSN help. However, one missing piece that I tried to figure out
is that I want to add a exit option to the password form. Basically for
users that didn't intend on opening the password protected form.
here is the code I have for the Null value notification. Can I add some
sort of If IsNull then CloseForm line instead of the "try again"?
Any sort of attempt brings up "Invalid use of Null" error message that may
confuse users.
****
Private Sub CheckPassword_Click()
If IsNull(Forms!frmPassword!Text0.Value) Then
MsgBox "You Must Enter A Password. Try Again."
Me!Text0.SetFocus
Else
MyPassword = Me!Text0.Value
DoCmd.Close acForm, "frmPassword"
End If
End Sub
****
Thanks!