Results 1 to 8 of 8
  1. #1
    Join Date
    May 2002
    Posts
    395

    Unanswered: Re: How to display * for password in inputbox?

    Hi everyone,

    I like to use input box to prompt user to enter their password instead of creating a text box on a separate form. But how do I get it display *'s for each character they type in input box?

    Thanks!

  2. #2
    Join Date
    May 2003
    Posts
    144
    Type in the keyword "Password" under the input mask of the password field.

    SHK

  3. #3
    Join Date
    Feb 2005
    Location
    The Hague, Netherlands
    Posts
    95
    He means, use smt like this:

    <INPUT TYPE=password NAME=pw SIZE=12 MAXLENGTH=12>

  4. #4
    Join Date
    May 2002
    Posts
    395

    Re: How to display * in inputbox?

    Hi SHK,

    Thanks for your reply.
    I would like to use Inputbox pops up when the password is needed instead of creating a text box and a form .
    Is there a way I can do it?
    Thanks!!

    This is the code I have

    Private Sub Command21_Click()
    Dim MyValue, message, title, pw As String

    message = "Please enter yourpassword:"
    title = "Password for unlocking date fields"
    pw = "definePasswordHere"
    MyValue = InputBox(message, title)

    If MyValue <> pw Then
    MsgBox ("The password is not acceptable; date fields remain locked.")
    DoCmd.CancelEvent

    End If

    End Sub
    MyValue = InputBox(message, title)

    If MyValue <> pw Then
    MsgBox ("The password is not acceptable; date fields remain locked.")
    DoCmd.CancelEvent

    End If

    End Sub

  5. #5
    Join Date
    May 2002
    Posts
    395

    Re: How to display * in input box?

    Hi Avlan,

    Thanks for your response.
    Could you explain where I can add the following in the code?

    <INPUT TYPE=password NAME=pw SIZE=12 MAXLENGTH=12>

    Thanks!

  6. #6
    Join Date
    May 2003
    Posts
    144

  7. #7
    Join Date
    May 2002
    Posts
    395

    Re: How to display * in inputbox?

    THANKS!!! SHK. It works beautifully.

  8. #8
    Join Date
    Feb 2005
    Location
    The Hague, Netherlands
    Posts
    95
    Quote Originally Posted by alicejwz
    Hi Avlan,

    Thanks for your response.
    Could you explain where I can add the following in the code?

    <INPUT TYPE=password NAME=pw SIZE=12 MAXLENGTH=12>

    Thanks!
    O shoot I forgot what forum I was on The above is simple HTML So I don't know how it is done in VBA, but you got your solution I see

Posting Permissions

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