Creating a form for a Password

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a Password form that will secure another form. Once the
password is entered it will open the form that has the list of reports. On
the form I have a text box that accepts the user's password and I have 2
command buttons one is OK and the other is CANCEL. Can anyone tell me how to
make these buttons work to open the form of reports?
 
I have created a Password form that will secure another form. Once the
password is entered it will open the form that has the list of reports. On
the form I have a text box that accepts the user's password and I have 2
command buttons one is OK and the other is CANCEL. Can anyone tell me how to
make these buttons work to open the form of reports?

Code the click event of the OK button:

If Me.[PasswordControl] = "the password" Then
DoCmd.OpenForm "ReportForm"
DoCmd.Close acForm, Me.Name

Code the Cancel button:
DoCmd.Close acForm, Me.Name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How do I set a password on a DB object (FORM)? 3
error 2489 1
Form security 1
Password Form 4
Password associated with a particular form - Acess 2007 1
Password protecting forms 2
Windows 10 W10 password prob. 2
Password Request 1

Back
Top