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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding ascii characters using a query

Status
Not open for further replies.

netcert

Programmer
Joined
Apr 11, 2001
Messages
115
Location
US
I'm trying to write a query (in sql view) to find any existing characters outside the 65-122 range. Here's what I have so far but i get no results:

SELECT tblMember.MemberNum, tblMember.LastName, tblMember.FirstName
FROM tblMember
GROUP BY tblMember.MemberNum, tblMember.LastName, tblMember.FirstName
having (tblMember.FirstName not like "chr[65-122]");

Again, I'm trying to search various fields for the existence of any of the characters that aren't alphabetic.

Thanks in advance!
 
So are you saying that what you have does not work?
 
yes.

It returns everything and practically ignores the chr search.

I want to be able to search any field and have it return any chr code it finds.

This stmt works better but only the 1st position:

select asc(left(firstname,1)) from tblMember
 
try something like this:


SELECT tblMember.MemberNum, tblMember.LastName, tblMember.FirstName
FROM tblMember
GROUP BY tblMember.MemberNum, tblMember.LastName, tblMember.FirstName
having (tblMember.FirstName Not Like "*[A-Z]" OR [firstname] Not Like "*[0-9]";
 
Like '*[!A-z]*'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top