Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Protect Just One Command Button

Status
Not open for further replies.

roblaysps

Technical User
Oct 8, 2001
2
GB
Hi,
How do I Set A Password For Just One Button. I have a button on my main form to add or delete a record and I want to password protect that button without having to run the entire database security module.

Can Anyone help?

RL



 
Hi!

On the click event of the button add this code:

If InputBox("Enter Password: ") = "YourPassword" Then
Do you stuff here
End If

hth
Jeff Bridgham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top