hide password (1 Viewer)

rainbows

Registered User.
Local time
Today, 13:13
Joined
Apr 21, 2017
Messages
425
hi

the code below is for a password to get into a form
how can the code be changed to hide the password when typing it in

thanks steve

Code:
Private Sub Command370_Click()


Dim strInput As String
Dim strMsg As String

Beep
strMsg = "Please Enter  the password to allow access."
strInput = InputBox(Prompt:=strMsg, Title:="Admin Password")
If strInput = "mhatb" Then
'MsgBox "Password accepted! Welcome!     " & "Ellen " 'password is correct
DoCmd.OpenForm "issue list"
DoCmd.Maximize
DoCmd.Close acForm, Me.Name
Else 'password is incorrect
MsgBox "Incorrect Password!" & vbCrLf & vbLf & "You are not allowed access to the ''issue list''.", vbCritical, "Invalid Password"
Exit Sub
End If
End Sub
 

Users who are viewing this thread

Top Bottom