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

Length and alpha recognition 2

Status
Not open for further replies.
Aug 24, 2005
56
US

Hello all...
I have a table with a column called Item Number and I need to find all item numbers that have a length of 14 characters with NO alphabets. Is there any way I can do this without having to resort to VB?

Thanks,

Kevin
 
Not really. You can
Code:
Where Len([Item Number]) = 14 AND IsNumeric([Item Number])
But that won't catch things that contain non-alphabetic characters like ,.$%&*@ ... etc.


[small]On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. (Charles Babbage)[/small]
 
WHERE Len([Item Number]) = 14 AND [Item Number] NOT 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