Password question, please help :)

A

Alberta Rose

I have a switchboard with three buttons on it. I would like to password
protect one of the buttons because it is for administrator use only. How do
I do this?

Thanks.
 
B

Beetle

Use something like the following in the button's Click event code.

If InputBox("Enter a password") = "YourPasswordHere" Then
'the procedure code for the button goes here
Else
MsgBox "Invalid password. Operation cancelled."
End If
 

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

Password question 8
My database loads but disabled? 4
Switchboard Problem 1
Password Protection 1
How can a user's login determine which switchboard opens? 2
Access Switchboard error message 1
Use of Pass words w Switchboard 3
Windows 10 W10 password prob. 2

Top