Results 1 to 6 of 6
  1. #1
    hnhpak is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jan 2015
    Location
    Karachi Pakistan
    Posts
    28

    Password

    Re: https://www.accessforums.net/forms/c...orm-34171.html



    Thanks for publish this simple code which can help millions of peoples, God Bless you.

    I will be grateful to you if you could also guide how can we hide the password from screen on typing so that it shows only ******* instead of actual password.

    Regads Haseeb
    Last edited by June7; 03-26-2015 at 10:38 AM.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Use Input Mask property. Select the password mask. This can be set up directly in table or just in textbox on form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    hnhpak is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jan 2015
    Location
    Karachi Pakistan
    Posts
    28

    Input mask properties of InputBox to Password mask

    Quote Originally Posted by June7 View Post
    Use Input Mask property. Select the password mask. This can be set up directly in table or just in textbox on form.
    Thanks June7,

    I am using InputBox instead of using textbox on form, my code is as under as you mentioned in this thread.

    Private Sub Form_Open(Cancel As Integer)
    If InputBox("What is the Password?") <> "TC" Then
    MsgBox "Nice Try Wise Guy, You're Out!!"
    Cancel = True
    End If
    End Sub

    so will you please guide how can I change the properties of InputBox further it accept both uppercase and lower case characters in password can't differentiate between them.

    Thanks and regards

    Haseeb ul Hasan

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Sorry, cannot change properties of InputBox. Access is by default not case sensitive. Enforcing case sensitivity is not something I've ever done. Would probably require a bunch of VBA code to validate each character of the password string. Suggest you search the web on topic of case sensitivity in Access.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    hnhpak is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Jan 2015
    Location
    Karachi Pakistan
    Posts
    28
    Quote Originally Posted by June7 View Post
    Sorry, cannot change properties of InputBox. Access is by default not case sensitive. Enforcing case sensitivity is not something I've ever done. Would probably require a bunch of VBA code to validate each character of the password string. Suggest you search the web on topic of case sensitivity in Access.
    Thanks June7 for your suggestions. This i am using for just one subform of navigation form which have command buttons for administrator use only.

    By the way do you have any link or sample database for login ID and password which can keep records of login and protect database by password?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Common topic in forum. Suggest you search.

    I have never done password protection. It is hard to truly secure an Access database. Any competent user knows just to hold down shift key while opening db to bypass code execution.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 05-10-2014, 12:50 PM
  2. Replies: 2
    Last Post: 12-24-2012, 10:15 PM
  3. Replies: 1
    Last Post: 07-24-2012, 06:10 PM
  4. Replies: 1
    Last Post: 06-22-2012, 08:05 AM
  5. Change from old password to new password
    By richy in forum Security
    Replies: 0
    Last Post: 11-17-2005, 05:05 AM

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