473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MS Acess Cannot Distinguish Between Capital and Small Letters

68
Good day all,

I am creating a new from for the purpose of allowing the Admin(s) to create new users. There is a filed for the password and another one to confirm the password. However, MS Access doesn’t seem to be able to distinguish between capital and small letters. For instance, if the password field contains “Smith” and the confirm password field contains “smith”, the below code wouldn’t work.

Expand|Select|Wrap|Line Numbers
  1. If Me.Password <> Me.ConfirmPassword Then
  2.             MsgBox "The passwords are not matching", vbOKOnly, "Required Data"
  3.             Me. ConfirmPassword.SetFocus
  4.         Exit Sub
  5.     End If 
  6.  
  7.  
Apr 13 '11 #1
3 3257
TheSmileyCoder
2,322 Expert Mod 2GB
Hi

Its not a question of "cannot". Its a concious thought out design choice from the developers.

If you wish to make a different comparision, you can define a function in a seperate module like so:
Expand|Select|Wrap|Line Numbers
  1. Option Compare Binary
  2. Option Explicit
  3.  
  4. Public Function bCompare(strInput1 As String, strInput2 As String) As Boolean
  5.  bCompare = (strInput1 = strInput2)
  6. End Function
  7.  
Note the Option Compare Binary at the top of the module. That makes Access for the code in this module, use binary comparison.
Apr 13 '11 #2
TheSmileyCoder
2,322 Expert Mod 2GB
I also just remember that access has a built in function for this. I just couldn't remember the name of it at the time of my first post.
Syntax:
Expand|Select|Wrap|Line Numbers
  1. StrComp(string1, string2[, compare])
For the optional compare variable, use vbBinaryCompare.
Apr 13 '11 #3
ahd2008
68
Thanks brother for your glorious efforts. Apprecciate your help

Regards,
Apr 16 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jeff | last post by:
Hi, I am trying to insert a space before all capital letters in a string except the first occurrence. For example: FirstSecondThird would become First Second Third Is there a regular...
7
by: Miguel Orrego | last post by:
I have a form which people use to register in a database. The form passes the input data to an asp page that then updates the database. The thing is, people often don't bother starting their...
4
by: Carlos Marangon | last post by:
Hello! People go to sign my guestbook and wrote all text in capital letters. Did you know any script that shows an window alert when one types the second capital letter? Best regards,
2
by: Ebi | last post by:
Hi I'm writing a project in C++ borland 5; and I need a function that get a string or char* variable and convert all of the small letters to the capital. please help me. -- Sincerely Yours...
7
by: Barry | last post by:
Hi all, I've noticed a strange error on my website. When I print a capital letter P with a dot above, using & #7766; it appears correctly, but when I use P& #0775 it doesn't. The following...
1
by: Marc Verdonck | last post by:
First: I have some troubles in access, some fields needs to begin with a Capital letter. Example: louiselaan need to be Louiselaan. How can I become this? Second: I'm exporting my database to...
6
by: mygoogleaccount | last post by:
Hi, may be someone could help me ? i need to use cyrillic letters in a php application. I changed everything to UTF-8 and it works fine. The only problem are CYRILLIC SMALL LETTER ES...
2
by: Merrigan | last post by:
Hi There, I'm sure I have done this before, but cannot remember how, or find out how to do it quickly - but is there a way/function/something in python to make all the letters of a raw_input()...
2
hsriat
by: hsriat | last post by:
This question might sound stupid, but I just want to know if it effects the performance of the browser if the whole HTML code is in CAPITAL letters or small letters?
5
by: TOE022 | last post by:
Hi! can anyone help me with this task? im creating a palindrom : write a recursic function whitch takes a stringobject(who only contains small letters and numbers) and checks if its a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.