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

How to write a query to get the digit in "TextDigitText" 2

Status
Not open for further replies.

kia70

Programmer
Dec 28, 2006
4
CA
I have a column which contains "text digit text" as "AAA 222 BBB". The numbers of letters or digits can vary.

I need to SELECT the column which contains digits in a specific interval. For Example I have
"DFS 673 JKK"
"A 3454 LJLJ"
"SD 854 JKLJD"

I need to SELECT the column which contains 600 < Digit < 700 the result of the query in this case would be "DFS 673 JKK" because 673 is between 600 and 700.

Thanx for any clue or suggestion...
 
WHERE Val(Mid(yourField,1+InStr(yourField," "))) Between 600 And 700

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank you PHV. You open the door to a new world for me. The functions you wrote for me led med to new functions which I didn't know it excist at all.... And your solution was pefect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top