Password protected form

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

Guest

How do I add a password protected form? I don't want to set up user
accounts, I just want to add a password to enter a specific form. Can it be
done???
 
How do I add a password protected form? I don't want to set up user
accounts, I just want to add a password to enter a specific form.
Can it be done???

In the OpenEvent of the form...

If InputBox("Enter Password") <> "YourPassword" Then
MsgBox "Wrong Password"
Cancel = True
End If

If you are not distributing as an MDE then anyone will be able to go into
design view and see the password though. Also there is no way to get a
password mask (asterisks) with an InputBox().
 

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

Excel Protection 2
Excel Excel macro and passwords 3
error 2489 1
Are password protected WiFi networks secure? 3
Password protecting forms 2
Windows 10 W10 password prob. 2
allow certain users access to fields in a form 2
Form security 1

Back
Top