Imput Mask

unclefink

Registered User.
Local time
Today, 14:08
Joined
May 7, 2012
Messages
184
I have a button in the main menu that I created that opens a new form for "maintenance" capabilities. I dont want just anyone who uses the database to access this form so I found this code to "secure" a button.

Code:
Dim PassWord As String
PassWord = InputBox("Enter Password")
If PassWord = "[B]YourPassword[/B]" Then
' Open Form
DoCmd.OpenForm "[B]YourFormName[/B]"
DoCmd.GoToRecord , , acNewRec
Else
MsgBox ("You're not authorized")
End If

I've got it all set and it works for what I want with one exception, when I type in the password, it displays the actual password so anyone in the room or possibly looking over my shoulder could see. How can I make any characters typed into this code display with "*"?
 
The inputbox doesn't have such features.
Create a small form with a text control and use the Password inputmask.
 

Users who are viewing this thread

Back
Top Bottom