Results 1 to 4 of 4

Thread: How to display * for text in a form

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    2

    Question How to display * for text in a form

    I am trying to have the SSN in my employee database form display as asterisks.

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898
    Declare a string field and place your SSN number in that;

    Dim strSSN as string
    dim i as integer
    ...
    ...
    ...

    strSSN = value from database

    for i = 0 to len(strSSN) - 1
    text1.text = text1.text & "*"
    next

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Put an * in the PasswordChar property of the textbox. Regardless of what is placed in the textbox, the only thing that will be displayed are astericks.

  4. #4
    New Member
    Join Date
    Sep 2002
    Posts
    10
    Hi man:

    Try to use Text1.PasswordChar = "*"
    this work perfectly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width