D
dbain30
I had a database setup in Access 97. I had one button setup so that
when clicked it opened a form with a text field that contained the
following code. If the user typed "report" it would then open the
form "Download Control", anything else would just allow the user to
continue entering the password.
Private Sub Password_Admin_Enter()
If Password_Admin.Text = "report" Then
Me.Visible = False
DoCmd.OpenForm "Download Control"
Password_Admin.Text = ""
End If
Password_Admin.Text = ""
End Sub
The issue is that we have upgraded to Access 2003 and this code does
not work. If it helps, the form is titled "Admin Password" and the
text field is titled "Password Admin". The debugger seems focused on
the first line of the "if" statement but so far I cannot seem to find
anything to resolve the issue, although it seems like it would be an
easy fix.
Any assistance would be greatly appreciated!
when clicked it opened a form with a text field that contained the
following code. If the user typed "report" it would then open the
form "Download Control", anything else would just allow the user to
continue entering the password.
Private Sub Password_Admin_Enter()
If Password_Admin.Text = "report" Then
Me.Visible = False
DoCmd.OpenForm "Download Control"
Password_Admin.Text = ""
End If
Password_Admin.Text = ""
End Sub
The issue is that we have upgraded to Access 2003 and this code does
not work. If it helps, the form is titled "Admin Password" and the
text field is titled "Password Admin". The debugger seems focused on
the first line of the "if" statement but so far I cannot seem to find
anything to resolve the issue, although it seems like it would be an
easy fix.
Any assistance would be greatly appreciated!