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
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