password protect command button

mic907

Registered User.
Local time
Today, 17:23
Joined
Nov 21, 2006
Messages
62
Is it possible to password-protect a command button? In other words, is there a way to require a user to enter a password upon clicking a button, in order for that button to carry out its specified function?

The obvious reason behind doing this would be to only allow only certain users to have specific functions; if it isn't possible, is there a alternative way to do this?
 
You could have the button open up a username/password form where they can supply the username/password.
 
how is that accomplished?
 
this also might be difficult because I need the command button to set a field equal to a certain value for a particular record
 
Code:
If InputBox(...) = "ValidPassword" Then
  'Do your thing
Else
  MsgBox "wrong password"
End If
 
also how can i hide the values typed in under the password textbox (ie: how can I make it so that when a person types in a password, the entry is shown as '*'; ie: '********' as opposed to 'password')
 

Users who are viewing this thread

Back
Top Bottom