case-sensitive

TBC

Registered User.
Local time
Today, 09:16
Joined
Dec 6, 2010
Messages
145
I've been trying to find a way to make access case-sensitive. in one of my tables I have a Aw and a AW. is there any way I can make it so they both don't look the same in access.

Thanks
 
"don't look the same " where exactly. Supply the context in which you wish to discern
 
Assuming you want a Where clause to detect the difference.

Use the VBA StrComp() function with the third parameter as 0. Same applies to InStr().
 
note that in vba there are alternative options to

"option compare database" that also affect string testing.
 
note that in vba there are alternative options to

"option compare database" that also affect string testing.

The alternative, Option Compare Binary, will cause code in that module into case sensitive comparisons but it won't affect the built-in StrComp and InStr functions.

You could go to the trouble of making a case sensitive version of these functions in a public module so they could be used in the database but adding the third parameter to the existing functions seems a lot easier.
 

Users who are viewing this thread

Back
Top Bottom