How to make a password case sensitive

I created a password unbound text box in a form using a password input mask in properties, but it is not case sensitive. How do I make it case sensitive?  Please be detailed, because I am a novice:~)
janandbenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GRayLCommented:
You have to process the password inside a module in which you have placed this line in the header

Option Compare Binary

0
Jeffrey CoachmanMIS LiasonCommented:
<You have to process the password inside a module in which you have placed this line in the header
Option Compare Binary>

Again...
"Every day is a school day"

;-)

Jeff
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

janandbenAuthor Commented:
HUH. . .
0
GRayLCommented:
Press Alt+F11 to get to the VB Window.  In Help type - Option Compare.

It looks like the module in which you process your comparison has the Option Compare set to Text or Database.  As you can see from Help,  it has to be Binary for a String comparison to be case sensitive.
0
GRayLCommented:
janandben:  Having a problem?
0
hnasrCommented:
Option Compare Binary takes care of case.
But if this is not required for other operations, then processing of the password helps.

Change the password to concatenation of ascii code of each character.
Ex:
Password AbA ----> 659865

Try this with an unbound text box, exit event for a password AbA. Option Compare Database

Private Sub Text18_Exit(Cancel As Integer)
    Dim s As String
    Dim I As Integer
    s = ""
    Text20 = Text18.Text
    For I = 1 To Len(Text18.Text)
        s = s & Asc(Mid(Text18.Text, I, 1))
    Next
    If s = "659865" Then Debug.Print "match ", Text18.Text
End Sub
0
hnasrCommented:
Text20 displays the text entered in (Text18 -Format PASSWORD).
0
hnasrCommented:
Another way, is to check for password using StrComp function.

result = StrComp(Text20,"YourPassword",vbBinaryCompare)

if equal, result evaluates to 0
0
Patrick MatthewsCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.