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

Criteria To Select Only Letters

Status
Not open for further replies.

JJman

Technical User
May 8, 2003
89
0
0
IN

I'm working in an Access Project to put criteria on an expression field to only show records where the left two characters are letters, not numbers. I've tried unsuccesfully using wildcards specific to each. Any help is appreciated!

 
off the top of my head

Code:
SELECT *
FROM tableName
WHERE NOT isNumeric(Right([field],2));

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page faq333-3811
[/sub]
 
nope...it would return one number and a char

sorry!

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page faq333-3811
[/sub]
 
Something like
[blue][tt]
fld LIKE [A-Z][A-Z]*
[/tt][/blue]
 
learn something everyday. I didn't know you could use a regex pattern in the query. nice!

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page faq333-3811
[/sub]
 

Like "[a-z][a-z]*" worked great. Thanks to both of you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top