Password text box

E

EAB1977

Hi guys,

I have a text box in a Login form that I am scratching my head on.
When the user types in their passowrd, like *****, the starts are
represented. Which is what I want to happen. In the back end of my
code, I use the passowrd that is enetered against the users Windows
login. When a user enters their password as LOg1n, it is represented
as Log1n and tells the user that the login is incorrect. Basically, it
is dropping any caps that are entered after the first letter. Can this
be corrected or is this a bug in Access?
 
M

Maurice

Is the password typed in corrected or is the check you are doing in VBA
setting it to normal size?

Try adjusting your check in code to something like:

if strComp(password, userpassword, vbBinaryCompare)<>0 then
...... your code here.
end if

where password is the password which the user entered and userpassword is
the password to compare it with

This will check the password as it is entered capitalized or not.

hth
 
Top