case Sensitive compare

R

Rover

I have a field x. I want to write a query and compare it to a literal
"1a" but I DON'T want that to compare equal to "1A" (Case Sensitive).
How do I do that?

TIA

Jim
 
D

Douglas J. Steele

You'll have to use the StrComp function. Instead of

WHERE Field1 = "1a"

use

WHERE StrComp([Field1], "1a", 0) = 0

Note that this will be noticably slower than simply doing a comparison.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top