Results 1 to 2 of 2

Thread: Hide password

  1. #1
    Join Date
    Jun 2013

    Unanswered: Hide password


    I'm new here. And i am noob in Microsoft Access. I just try to do something .

    I want to make a form of authentication in Microsoft Access.

    I have this code:

    Option Compare Database
    Private Sub Form_Load()
    Dim PassWord As String
    PassWord = InputBox("Enter the password for the seller")
    If PassWord = "seller" Then
    ' Open Form
    DoCmd.OpenForm "seller"
    DoCmd.GoToRecord , , acNewRec
    DoCmd.Close acForm, "seller authentication"
    MsgBox ("Wrong password!")
    DoCmd.Close acForm, "seller authentication"
    End If
    End Sub

    Where am I supposed to add something that would hide the password? Like: **** or something.

    Or if I can do it so please give me some advice.

    Thank you so much!

  2. #2
    Join Date
    May 2005
    Nevada, USA
    Provided Answers: 6
    I would use a form rather than InputBox, so you can use the password input mask. Here's one example:

    Wrapped form

Posting Permissions

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