password on form question!

kidrobot

Registered User.
Local time
Today, 15:16
Joined
Apr 16, 2007
Messages
408
I have this code to ask for a PW to get to the next point. When I enter the password I can see " hey! " ... is there a way to make the pw show as **** when it is being typed in?

Code:
  Dim strPassword

   strPassword = 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 strPassword = "" Or strPassword = Empty Then
       MsgBox "No Input Provided", vbInformation, "Required Data"
       Exit Sub
   End If

   'If correct password is entered open TPA form
   'If incorrect password entered give message and exit sub

   If strPassword = "hey!" Then
   
''''''''''''''''''''''''''
do stuff
''''''''''''''''''''''''''

Else
       MsgBox "Sorry, you do not have access to this form.", vbOKOnly, "Important Information"
       Exit Sub
   End If
 
k from what I read it can't be done unless I create an Access password form or that API stuff, which I don't feel like doing. thanks.
 
if u put a password input mask on the txtbox that they enter into they will see stars instead of the actual password
 

Users who are viewing this thread

Back
Top Bottom