Results 1 to 5 of 5

Show/Hide txt to password * on a form with a check box

  1. #1
    d9pierce1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Tennessee
    Posts
    201

    Show/Hide txt to password * on a form with a check box

    Hello,
    I have read over many threads trying to find this however, I cannot find anything even close. In any case, is there a way to have a txt box on a form that is a password with the **** format and change that back to txt with a check box. (Show/hide password chkbox. )


    Thanks
    David

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    48,254
    You are using InputMask property to hash the password? Code would have to modify this property, like:

    Forms!Form1.Text42.InputMask = ""
    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
    d9pierce1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Tennessee
    Posts
    201
    Hi,
    This is just to test but so far doesn't work on form? IsActive is a checkbox, TxtCity is a text box with imputmask as password!

    Private Sub IsActive_Click()
    If Me.IsActive = 0 Then
    Forms!Frm_City.TxtCity.InputMask = ""
    End Sub

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    20,612
    June7's answer looks correct to me. Just tested and this toggled the setting:

    Code:
    Private Sub Check19_AfterUpdate()
      If Me.Check19 = True Then
        Me.MyText1.InputMask = ""
      Else
        Me.MyText1.InputMask = "Password"
      End If
    End Sub
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    d9pierce1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Tennessee
    Posts
    201
    Thank you so much

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

Similar Threads

  1. Replies: 2
    Last Post: 10-23-2015, 02:38 PM
  2. Replies: 1
    Last Post: 08-07-2015, 08:24 AM
  3. Hide/Show a row on a multiple items form
    By Historypaul in forum Programming
    Replies: 10
    Last Post: 04-20-2014, 10:34 PM
  4. Check-box to hide/show input fields
    By RapidFireGT in forum Forms
    Replies: 2
    Last Post: 12-05-2011, 05:55 PM
  5. Show/Hide Form
    By sparlaman in forum Forms
    Replies: 5
    Last Post: 05-16-2011, 11:48 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
  •  
Tech Forums: Microsoft Office Forums