944,103 Members | Top Members by Rank

Ad:
May 17th, 2007
0

Case Sensative (login/password)

Expand Post »
Hello!! I have a working login/password form which reads the stored login/passwords from Access, but I am trying to make it so the login and password is case sensative?

Thanks!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
pbrookee is offline Offline
34 posts
since Apr 2007
May 18th, 2007
0

Re: Case Sensative (login/password)

Dunno if it words but try using Ascii conversion.
Reputation Points: 26
Solved Threads: 5
Junior Poster
scudzilla is offline Offline
191 posts
since Mar 2007
May 21st, 2007
0

Re: Case Sensative (login/password)

This is what I came up with...Thanks again

If StrComp(rec!password, txtPswrd.Text, 0) <> StrComp(txtPswrd.Text, rec!password, 0) Then
MsgBox "Invalid Login and password, please try again", vbOKOnly
Reputation Points: 10
Solved Threads: 0
Light Poster
pbrookee is offline Offline
34 posts
since Apr 2007
May 21st, 2007
0

Re: Case Sensative (login/password)

Click to Expand / Collapse  Quote originally posted by pbrookee ...
Hello!! I have a working login/password form which reads the stored login/passwords from Access, but I am trying to make it so the login and password is case sensative?

Thanks!
How are you doing the comparison ?

If you are using '=' then it should be case senistive, if using 'like' then it is not case sensitive
Reputation Points: 22
Solved Threads: 19
Posting Whiz
DenisOxon is offline Offline
345 posts
since Jan 2007
May 25th, 2007
0

Re: Case Sensative (login/password)

Wouldn't
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. UCase and LCase
do...
Reputation Points: 35
Solved Threads: 0
Light Poster
~Paul~ is offline Offline
31 posts
since May 2007
May 25th, 2007
0

Re: Case Sensative (login/password)

Click to Expand / Collapse  Quote originally posted by ~Paul~ ...
Wouldn't
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. UCase and LCase
do...
No, UCase and LCase actually are the opposite of what he is trying to do.
Reputation Points: 26
Solved Threads: 5
Junior Poster
scudzilla is offline Offline
191 posts
since Mar 2007
May 25th, 2007
0

Re: Case Sensative (login/password)

O then just use StrConv

example....

Vb Syntax (Toggle Plain Text)
  1. Text1.Text = StrConv(Text1.Text, vbProperCase)
Reputation Points: 35
Solved Threads: 0
Light Poster
~Paul~ is offline Offline
31 posts
since May 2007
May 25th, 2007
0

Re: Case Sensative (login/password)

yes i am using '='

Kudos!!

Click to Expand / Collapse  Quote originally posted by DenisOxon ...
How are you doing the comparison ?

If you are using '=' then it should be case senistive, if using 'like' then it is not case sensitive
Reputation Points: 10
Solved Threads: 0
Light Poster
pbrookee is offline Offline
34 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How to align array values
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: printing code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC