Results 1 to 5 of 5
  1. #1
    P.Malius is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    10

    Password Control

    Hi,



    I have some code used to protect a button, everything is working fine except the password shows up as actual characters, obviously this is not ideal. Could anyone tell me a way to have the letters inputted show up as '*' or something along those lines? Is this even possible using this method?

    The Code I used is

    Code:
    Private Sub Command163_Click()
            
            Dim PassWord As String
               PassWord = InputBox("Enter Password")
               If PassWord = "password" Then
                    Forms!frmSpecification.FRStatus = "Approved"
                    Forms!frmSpecification.FRDate = Now()
               Else
                  MsgBox ("Access Denied! Use the Main Menu to report a problem.")
               End If
    
    End Sub
    Thanks.

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I do not know if you have much in the way of formatting options with the InputBox() structure. I typically use a form for login and that way you can use the input mask property of the textbox control on the form to show **** instead of the actual text of the password.

  3. #3
    P.Malius is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    10
    I did consider this option when setting up the DB but it all was a bit complicated considering I only wanted the one button protecting. I can live with how it is, I just thought I'd see if anyone knew of a way. Thanks anyway.

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Sorry I could not be of more help.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    A separate 'login' Form makes sense, for logging into an app, but for this kind of thing, why not simply have a Textbox adjacent to the Command Button for the password to be entered into, use the Password Formatting, as suggested, and have the code look at this Textbox instead of using the InputBox function?

    Linq ;0)>

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

Similar Threads

  1. Replies: 1
    Last Post: 06-22-2012, 08:05 AM
  2. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  3. Replies: 5
    Last Post: 10-13-2011, 03:36 PM
  4. Replies: 6
    Last Post: 03-14-2011, 09:37 AM
  5. Change from old password to new password
    By richy in forum Security
    Replies: 0
    Last Post: 11-17-2005, 05:05 AM

Tags for this Thread

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