Case Sensative (login/password)

Reply

Join Date: Apr 2007
Posts: 34
Reputation: pbrookee is an unknown quantity at this point 
Solved Threads: 0
pbrookee pbrookee is offline Offline
Light Poster

Case Sensative (login/password)

 
0
  #1
May 17th, 2007
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!
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 181
Reputation: scudzilla is an unknown quantity at this point 
Solved Threads: 3
scudzilla's Avatar
scudzilla scudzilla is offline Offline
Junior Poster

Re: Case Sensative (login/password)

 
0
  #2
May 18th, 2007
Dunno if it words but try using Ascii conversion.
There are 10 types of people: those who understand Binary and those who don't!
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 34
Reputation: pbrookee is an unknown quantity at this point 
Solved Threads: 0
pbrookee pbrookee is offline Offline
Light Poster

Re: Case Sensative (login/password)

 
0
  #3
May 21st, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 319
Reputation: DenisOxon is an unknown quantity at this point 
Solved Threads: 15
DenisOxon's Avatar
DenisOxon DenisOxon is offline Offline
Posting Whiz

Re: Case Sensative (login/password)

 
0
  #4
May 21st, 2007
Originally Posted by pbrookee View 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!
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
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 31
Reputation: ~Paul~ is an unknown quantity at this point 
Solved Threads: 0
~Paul~ ~Paul~ is offline Offline
Light Poster

Re: Case Sensative (login/password)

 
0
  #5
May 25th, 2007
Wouldn't
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. UCase and LCase
do...
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 181
Reputation: scudzilla is an unknown quantity at this point 
Solved Threads: 3
scudzilla's Avatar
scudzilla scudzilla is offline Offline
Junior Poster

Re: Case Sensative (login/password)

 
0
  #6
May 25th, 2007
Originally Posted by ~Paul~ View Post
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.
There are 10 types of people: those who understand Binary and those who don't!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 31
Reputation: ~Paul~ is an unknown quantity at this point 
Solved Threads: 0
~Paul~ ~Paul~ is offline Offline
Light Poster

Re: Case Sensative (login/password)

 
0
  #7
May 25th, 2007
O then just use StrConv

example....

  1. Text1.Text = StrConv(Text1.Text, vbProperCase)
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 34
Reputation: pbrookee is an unknown quantity at this point 
Solved Threads: 0
pbrookee pbrookee is offline Offline
Light Poster

Re: Case Sensative (login/password)

 
0
  #8
May 25th, 2007
yes i am using '='

Kudos!!

Originally Posted by DenisOxon View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC