Results 1 to 6 of 6
  1. #1
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376

    Need to show * instead of number input

    Hello all,


    I searched but couldn't find anything on what I am sure is a common Question. I have a field for social security #, txtSocial, and I want to set it to show an asterisk for each number inputted. I already have the input mask set to Social Security but I don't want the input box to show it, I want it to show an asterisk for each #

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    Where are you putting the mask - table field or form control? I have rarely used masks so the only way I know of entering * for characters is password input mask. If done on the control you won't be able to read data in a form so that's of no use? If users can get at your tables, then there's not much point? In fact, I'm wondering when it is that you don't want the numbers to be visible. Surely not during data entry? Maybe what you want is field encryption, but that can only be done in code AFAIK.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    Micron,
    How would I do it in code? I am not that familiar with VBA

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Web search "Access field encryption".

    Review https://bytes.com/topic/access/insig...m-vba-vbscript
    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
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    Been a long time since I had any encryption code. So long in fact, that I can't even open those db's on my usual pc. Try googling
    ms access table field encryption

    The methodology involves swapping input characters with gibberish using a cipher and storing that in a field. You have to reverse the process to be able to make sense of the data. The lowest form of encryption would be to shift the input character Ascii value by factor x, then shift back by factor x. Not real strong, especially if anyone can read how the code does it. The level of encryption you'd want to find and copy code for depends on your needs. RC4 is the strongest, AFAIK. Sorry I can't be much more help than that.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,933
    Quote Originally Posted by Dave14867 View Post
    Hello all,
    I searched but couldn't find anything on what I am sure is a common Question. I have a field for social security #, txtSocial, and I want to set it to show an asterisk for each number inputted. I already have the input mask set to Social Security but I don't want the input box to show it, I want it to show an asterisk for each #
    Use the password option then?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 1
    Last Post: 07-13-2021, 11:42 PM
  2. Show input parameter on query results
    By tonylomax in forum Queries
    Replies: 1
    Last Post: 09-26-2018, 04:05 AM
  3. Replies: 4
    Last Post: 07-06-2017, 03:09 AM
  4. Replies: 3
    Last Post: 08-04-2014, 09:52 PM
  5. Check-box to hide/show input fields
    By RapidFireGT in forum Forms
    Replies: 2
    Last Post: 12-05-2011, 05:55 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