Dec 15, 2011 #1 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
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
Dec 15, 2011 #2 briangriffin Programmer Nov 6, 2008 878 US 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) Upvote 0 Downvote
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)
Dec 15, 2011 Thread starter #3 GMAN33 IS-IT--Management Dec 4, 2002 115 US That is a BEAUTIFUL thing!!! Thank you very much for the quick response!!! Greatly appreciate it!!! Upvote 0 Downvote