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!

Finding Non-Numeric Values

Status
Not open for further replies.

leadpro

Technical User
Jan 7, 2005
34
0
0
US
I need a query that looks for any occurance of a non-numeric value in a text field. Any ideas?

Thanks,

leadpro
 
Code:
SELECT  txtfield
FROM table
WHERE ((Not (txtfield)=("IsNumeric")));

traingamer
 
SELECT * FROM yourTable WHERE Not IsNumeric([textfield]);

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Code:
SELECT txtfield
FROM table
WHERE (((IsNumeric([txtfield]))=True));

traingamer
 
At least it's friday:

Code:
SELECT txtfield
FROM table
WHERE (((IsNumeric([txtfield]))=[COLOR=red]False[/color]));

traingamer
 
Code:
SELECT txtfield
FROM table
WHERE (((IsNumeric([txtfield]))=True));

traingamer
 
Don't know where that last one came from -
PH has the answer I tried to type the first time.
:~/

traingamer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top