Password text box

  • Thread starter Thread starter EAB1977
  • Start date Start date
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?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top