Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password check for *****

Status
Not open for further replies.

mohebk

MIS
Aug 23, 2005
139
US
Hi,
I have a log in window with a text field for the password. The text box's input mask is set for PASSWORD to display ****. But when I try to verify the password, the code is rading the password as **** and not finding the match.

Can you please help?
Thanks in advance.

Mo
 
How are ya mohebk . . .

Its sounds like your using the [blue]Text[/blue] property of the control:
Code:
[blue]   Dim PWD as String

   PWD = Me![purple][b]TextboxName[/b][/purple].Text[/blue]
Use the default value property instead:
Code:
[blue]   Dim PWD as String

   PWD = Me![purple][b]TextboxName[/b][/purple][/blue]

Calvin.gif
See Ya! . . . . . .
 
You are right. I was using the .text property. I used .value and it worked great.

Thanks a lot

Mo
 
mohebk . . .

Be aware: When no property is supplied the [blue]default implied property[/blue] is the [blue]Value[/blue] property, so that:
Code:
[blue]   PWD = Me!TextboxName
[purple]is the same as[/purple]
   PWD = Me!TextboxName.Value[/blue]
It makes for easier reading of code!

Calvin.gif
See Ya! . . . . . .
 
Thanks a lot. I know that that works but was not sure why. Now that you provided this ruel, I will keep in mind in the future.
Thanks again.

Mo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top