Results 1 to 3 of 3
  1. #1
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    124

    VBA to apply Password input mask

    I have a form for users to "change my password". The User_Password field includes a password Input Mask, I have 2 buttons View and Hide to show or hide the password from *** or 123.
    The code User_Password.InputMask = "" successfully shows the password but I cant seem to re-apply the password input mask

    I have tried: User_Password.InputMask = "Password" & User_Password.InputMask = Password but nether work


    Can anyone help please?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,842
    works for me with

    Code:
    Private Sub Command2_Click()
    
    
    If Text0.InputMask = "password" Then
        Text0.InputMask = ""
    Else
        Text0.InputMask = "password"
    End If
    
    
    End Sub

  3. #3
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    124
    Sorted Thanks!

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

Similar Threads

  1. CheckBox to unmaks a password input mask
    By d9pierce1 in forum Programming
    Replies: 6
    Last Post: 10-30-2020, 01:28 AM
  2. Replies: 6
    Last Post: 04-14-2018, 03:35 PM
  3. Replies: 2
    Last Post: 02-27-2015, 10:03 PM
  4. Web Database: Input Mask for Password
    By besuchanko in forum Forms
    Replies: 3
    Last Post: 07-25-2013, 03:28 PM
  5. Replies: 2
    Last Post: 09-11-2012, 11:02 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