PDA

Click to See Complete Forum and Search --> : How to display * for text in a form


coadyk
Sep 12th, 2002, 01:49 PM
I am trying to have the SSN in my employee database form display as asterisks. :confused:

Bill Crawley
Sep 13th, 2002, 08:56 AM
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

Hack
Sep 13th, 2002, 01:10 PM
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.

juanki23
Sep 23rd, 2002, 09:19 AM
Hi man:

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