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!

Splitting a field

Status
Not open for further replies.

GMAN33

IS-IT--Management
Dec 4, 2002
115
US
Hi All

Crystal Dev XI/Oracle 10 DB/Oracle Native Client connection

I have a {subject} field that is like this

ABC004-12345-02

I need to trim/split to obtain

04-12345

Any assistance would be greatly appreciated!!

Thanks
 

If the field always takes that exact form then this will work - find the first "-", then go back two characters and then go forward eight characters.

mid({yourfield},instr({yourfield},"-") - 2,8)

 
That is a BEAUTIFUL thing!!! Thank you very much for the quick response!!! Greatly appreciate it!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top