Text Box - Password Input Mask

Screaminxpert

New to Access
Local time
Today, 18:08
Joined
Nov 23, 2008
Messages
18
Hi All,

I am using to VBA code on my database to protect a form with a password, I need to know how to create a password input mask in the text box, below is the code I am using...

Private Sub Command231_Click()
Dim stDocName As String
Dim stLinkCriteria As String
Dim PassWordtxt


PassWordtxt = InputBox("Please Type in password")
If PassWordtxt = "password" Then
stDocName = "ViewApplications"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "The password provided was incorrect - you do not have permission"
End If
End Sub

Thanks in advance
 
In design mode for your form just set the input mask for the password input box to password
 
Hi,

The text box is not created using a form, it is created by the VBA code posted in my original question.

Thanks
 

Users who are viewing this thread

Back
Top Bottom