L
Luther
Hello,
How would I code for an input mask for a password? I have the following
behind a command button, but I want it to only show asterisks (*), not the
actual password.
Any help would be appreciated.
Private Sub UpdateSummary_Click()
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Report")
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "You must enter a PASSWORD to continue", vbInformation, "Required Data"
Exit Sub
End If
If strPasswd = "Eve's report" Then
Dim stDocName As String
stDocName = "rptSourceCodes_Summary"
DoCmd.OpenReport stDocName, acPreview
Else
MsgBox "Sorry, you do not have access to this report", vbOKOnly, "Important
Information"
Exit Sub
End If
End Sub
How would I code for an input mask for a password? I have the following
behind a command button, but I want it to only show asterisks (*), not the
actual password.
Any help would be appreciated.
Private Sub UpdateSummary_Click()
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Report")
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "You must enter a PASSWORD to continue", vbInformation, "Required Data"
Exit Sub
End If
If strPasswd = "Eve's report" Then
Dim stDocName As String
stDocName = "rptSourceCodes_Summary"
DoCmd.OpenReport stDocName, acPreview
Else
MsgBox "Sorry, you do not have access to this report", vbOKOnly, "Important
Information"
Exit Sub
End If
End Sub