matthewnsarah07
Registered User.
- Local time
- Yesterday, 22:33
- Joined
- Feb 19, 2008
- Messages
- 192
I am currently using the code pasted below, it simply pops up a box on click and checks the password entered. Problem is that when you type in the password you can see it on screen. I know on forms there is a password input mask - how can i right this same thing in to code so the typing appears as '****' etc.
Code used:
Private Sub Command4_Click()
On Error GoTo Err_Command4_Click
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
If strPasswd = "nwrcc" Then
stDocName = "OM Page"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
Exit_Command4_Click:
Exit Sub
Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click
End Sub
Any ideas?
Code used:
Private Sub Command4_Click()
On Error GoTo Err_Command4_Click
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
If strPasswd = "nwrcc" Then
stDocName = "OM Page"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
Exit_Command4_Click:
Exit Sub
Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click
End Sub
Any ideas?