S
Sam Kuo
Hi, I'd like to have the password stored as the character, but displayed as
asterisk(*) as the user enters the password. What code would I add to the
following code?Many thanks for your time and help
Private Sub Form_Open(Cancel As Integer)
Const strFormPassword As String = "password"
If InputBox("Please enter password") <> strFormPassword Then
MsgBox "Password incorrect. Please try again", vbOKOnly
Cancel = True
Else
DoCmd.Restore
DoCmd.Close acForm, "frmMainSwitchboard", acSaveNo
End If
End Sub
asterisk(*) as the user enters the password. What code would I add to the
following code?Many thanks for your time and help
Private Sub Form_Open(Cancel As Integer)
Const strFormPassword As String = "password"
If InputBox("Please enter password") <> strFormPassword Then
MsgBox "Password incorrect. Please try again", vbOKOnly
Cancel = True
Else
DoCmd.Restore
DoCmd.Close acForm, "frmMainSwitchboard", acSaveNo
End If
End Sub