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!

Instr formula or something similiar 1

Status
Not open for further replies.

DrHabi

Technical User
Jan 22, 2002
103
US
Hi,
I am in need of of formula that would allow me to search a field for a mark such as "/" then take the next character( which will be a number). I have been playing around with using instr and have not been to successful but maybe I need to do an array search. What the main goal is that I will have a field called {package.id} and within this field will be a "/" then a number. Based on this number I will do certain calculation. The length will not be set but random. Any suggestion would be greatly appreciated.
Thanks,
Jim
 
Without seeing sample data, I'd guess that you'd be able to use the output of
Code:
Val(Mid({Your.Field},InStr({Your.Field},'/')+1))
in your calculations.

All the best,

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top