Results 1 to 4 of 4
  1. #1
    Simonhtc4 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    30

    Help Astrix Password as they type

    Hi Guys,



    I have wrote some VBA for a button that requires a password to enter another form, i have been asked then the users enters the password it need to astrixed out as they type it in.
    is this possible and how.

    My code below:
    Private Sub Administrator_btn_Click()
    'Attached to On Click event of cmdOpenAdministrator_frm


    Dim strPasswd


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


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


    If strPasswd = "broadway321" Then
    DoCmd.OpenForm "Administrator_frm", acNormal
    Else
    MsgBox "Sorry, you do not have access to this form", _
    vbOKOnly, "Important Information"

    Exit Sub
    End If
    DoCmd.Close acForm, "HomePage_frm"
    End Sub

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I don't know, but perhaps it would be a keyboard language setting where by all keys =*

    Like I said I don't know.

  3. #3
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,417
    Create your own form for the user login. In the password textbox properties, data tab, 'input mask' = password.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 03-28-2017, 03:10 PM
  2. Replies: 1
    Last Post: 06-03-2016, 03:58 AM
  3. Replies: 4
    Last Post: 07-15-2012, 01:48 PM
  4. Replies: 1
    Last Post: 06-22-2012, 08:05 AM
  5. change field to "password" type
    By ducecoop in forum Access
    Replies: 3
    Last Post: 11-11-2010, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums