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

Extract Part of a field using a formula

Status
Not open for further replies.

Acer1608

Technical User
Mar 24, 2011
4
US
Hi
I'm trying to extract certain numbers from a database field and use them as a formula to filter off.

The field would look like this normally .. 55-050-325-150


Basically I want to be able to pull the 0-325 digits out of the field.

Ive been trying to use the Left and Instr but not having much luck.
 
Hi,
If that pattern is always the same then:
Code:
MID({Table.StringField},6,5)

should do it.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
sorry, I meant
if {Table.yourstringfield} like "*0-325*" then true else false

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top