J
Jan Schweitzer via AccessMonster.com
I am new to this forum and to VB. No formal Access training, learned by
doing and reviewing this type of forum but I am stuck. My problem is very
elementary, I am sure. I have created a Password form with a text box and
command button using the script below for the Event Procedure for the
Command Button but I am not sure where and how to place the code to clear
the text box (textboxname.value=null). Is it to be included in this script
and if so where. Thank you in advance for the help.
Private Sub Open'formname'_Click()
If Me.'textboxname'= "password" Then
DoCmd.RunMacro "mcr"
Else
MsgBox "Incorrect Password.Please Try Again"
End If
End Sub
doing and reviewing this type of forum but I am stuck. My problem is very
elementary, I am sure. I have created a Password form with a text box and
command button using the script below for the Event Procedure for the
Command Button but I am not sure where and how to place the code to clear
the text box (textboxname.value=null). Is it to be included in this script
and if so where. Thank you in advance for the help.
Private Sub Open'formname'_Click()
If Me.'textboxname'= "password" Then
DoCmd.RunMacro "mcr"
Else
MsgBox "Incorrect Password.Please Try Again"
End If
End Sub