Hi, I used a suggestion out here to password protect one form within my database, however after the user is prompted to enter their password, the password is being display on the screen. How to I make it so this displays as an asterick instead of the actual password?
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
'Check to see if there is any entry made to input box, or if
'cancel button is pressed. If no entry made then exit sub.
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
'If correct password is entered open Date Input form
'If incorrect password entered give message and exit sub
If strPasswd = "StaffName" Then
DoCmd.OpenForm "dbo_XREF_CTV_Munfin", acViewNormal
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
'Check to see if there is any entry made to input box, or if
'cancel button is pressed. If no entry made then exit sub.
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
'If correct password is entered open Date Input form
'If incorrect password entered give message and exit sub
If strPasswd = "StaffName" Then
DoCmd.OpenForm "dbo_XREF_CTV_Munfin", acViewNormal
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub