G
Guest
I have this code to protect a form when I press a command button. My question
is: When I input my password everyone can see my password, how can I input my
password and show "*****", for no one see my password?
Private Sub AddFuncionário_Click()
Dim strPasswd
strPasswd = InputBox("insert password", "restrict form")
'See if a valid entry made to input box
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "Can not be empty.", vbInformation, "Needed"
Exit Sub
End If
'correct password is entered open Main form Close, Opening Sheet
If strPasswd = "MYpassword" Then
DoCmd.OpenForm "FormName", acNormal
Else
MsgBox "Sorry", vbOKOnly, "Important "
Exit Sub
End If
End Sub
is: When I input my password everyone can see my password, how can I input my
password and show "*****", for no one see my password?
Private Sub AddFuncionário_Click()
Dim strPasswd
strPasswd = InputBox("insert password", "restrict form")
'See if a valid entry made to input box
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "Can not be empty.", vbInformation, "Needed"
Exit Sub
End If
'correct password is entered open Main form Close, Opening Sheet
If strPasswd = "MYpassword" Then
DoCmd.OpenForm "FormName", acNormal
Else
MsgBox "Sorry", vbOKOnly, "Important "
Exit Sub
End If
End Sub