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:~)
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
You have to process the password inside a module in which you have placed this line in the header

Option Compare Binary

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>

"Every day is a school day"


Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

janandbenAuthor Commented:
HUH. . .
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.
janandben:  Having a problem?
Hamed NasrRetired IT ProfessionalCommented:
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.
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))
    If s = "659865" Then Debug.Print "match ", Text18.Text
End Sub
Hamed NasrRetired IT ProfessionalCommented:
Text20 displays the text entered in (Text18 -Format PASSWORD).
Hamed NasrRetired IT ProfessionalCommented:
Another way, is to check for password using StrComp function.

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

if equal, result evaluates to 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.
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.