Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136

    Unanswered: Password Input Mask

    I am using Access 2000. I'm a newbie and need some help with an input mask.

    I don't know if I'm going about this the wrong way but how I have it now is working fine. Except, when the user types in their password - everyone can see what they're typing.

    This is what I have when the user clicks on a command button.

    Dim strPasswd

    strPasswd = InputBox("Enter Password", "Restricted Form")

    If strPasswd = "" Or strPasswd = Empty Then
    MsgBox "You do not have rights to access this menu.", vbInformation, "Required Data"
    Exit Sub
    End If

    If strPasswd = "brookeevans" Then
    DoCmd.OpenForm "Menu", acNormal
    Else
    MsgBox "Sorry, you do not have access to this form", vbOKOnly, "Important Information"
    Exit Sub
    End If

    Is there somewhere in there that I can say I want a password input mask? So the only thing anyone sees while the password is typed is *********

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Don't use an inputbox for this, design a small form and set the inputmask for the textbox to password.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Mar 2005
    Posts
    261
    It is possible, but I agree with Teddy in that you should really set it up as a form.

    If you really want to try it using InputBox, the solution is here:

    http://www.danielklann.com/excel/hid...a_inputbox.htm

    Wayne Phillips
    http://www.everythingaccess.com

  4. #4
    Join Date
    Sep 2005
    Location
    Utah
    Posts
    136
    Thanks, I created a form and it works great!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •