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

Isolate records with numbers 2

Status
Not open for further replies.

LakotaMan

Instructor
Aug 21, 2001
240
US
I have a text field in an Access 2003 DB. Many entries are text, and many are just numbers. I need to isolate the records that have only numbers in that field and can't seem to come up with a criteria do it.

I confess I've searched the forum and not found my answer, possibly because I'm not sure how to search for it.

Any help you can give me will be greatly appreciated, as always.

TWD
 


Hi,

"Many entries are text, and many are just numbers. "

Actually they are ALL text values. Its just that some of them apparently are text with numeric characters.

How about
Code:
where isnumeric([yourfield] = true


Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 


Hi,

"Many entries are text, and many are just numbers. "

Actually they are ALL text values. Its just that some of them apparently are text with numeric characters.

How about
Code:
where isnumeric([yourfield]) = true


Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
A starting point:
Not Like '*[!0-9]*'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Ok, I don't have the entire answer. I'll keep looking. But a good starting point MIGHT be this.

In the criteria of a query, you could put,
Code:
Like "[A-Z]*"

That way you can at least SEE the separation.

This might not help you, but I'll keep researching.
 
Thanks, PHV and Dontremb, I used your method and got exactly what I wanted.

Stars to both of you.
TWD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top