Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I've created a query in A

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I've created a query in Access2000.
This is the query:

SELECT codes.CODE
FROM codes
WHERE (((codes.CODE)="aDss"));

I get "adss", "Adss", "ADss", ... as result.
I just want the records where the code is "aDss".
Is it possible to create a case sensitive query?

Thanks!
 
Access is case insensitive as is Jet SQL. Tiy can use a VB function in a query to perform a case sensitive search.

SELECT codes.CODE
FROM codes
WHERE InStr(1,
Code:
,"aDss",0)[/b];

The last parameter of the InStr function is the Compare option. 0 indicates binary comparison. Terry L. Broadbent
[COLOR=maroon]Programming and Computing Resources
[URL unfurl="true"]http://tlbroadbent.home.attbi.com/prog.htm[/URL][/color]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top