R
Ranjith Kurian
Hi all
The below code pop up the input box asking password, and the password is
visible to all, is it possible to convert the character to asterisk.
Private Sub Command1_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 = "ranjit" Then
DoCmd.OpenForm "PROD", acNormal
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub
The below code pop up the input box asking password, and the password is
visible to all, is it possible to convert the character to asterisk.
Private Sub Command1_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 = "ranjit" Then
DoCmd.OpenForm "PROD", acNormal
Else
MsgBox "Sorry, you do not have access to this form", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub