Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Pulling Out Specific Imbedded Data Post Reply Post New Topic
Author Message
Dejaneira
Newbie
Newbie


Joined: 11 Sep 2015
Location: United States
Online Status: Offline
Posts: 15
Quote Dejaneira Replybullet Topic: Pulling Out Specific Imbedded Data
    Posted: 25 Sep 2015 at 11:51am
I need to pull out some data in the middle of a string and then group on that data. Trouble is the text in the different areas can change depending on where the data is being pulled from. I need to group on the bold area below that always ocurrs within the [] after the : with the caveat that the () before and after may or may not be there. Confused
Anyone got any ideas?
 
Sample 1--> (KCI)[Inv Num: T2-1207846](Payroll Expense Transfer)
Sample 2 --> [PCO Num: 0002](Supervision)
IP IP Logged
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Posted: 28 Sep 2015 at 12:38am
Hi,


Use below code to achieve your requirement.


Mid({Database_Field},InStr({Database_Field},":")+1,(instr({Database_Field},"]")-InStr({Database_Field},":"))-1)

--Praveen G
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
Dejaneira
Newbie
Newbie


Joined: 11 Sep 2015
Location: United States
Online Status: Offline
Posts: 15
Quote Dejaneira Replybullet Posted: 30 Sep 2015 at 7:38am
You are awesome and I have a whole division of people who thank you!


Edited by Dejaneira - 30 Sep 2015 at 8:39am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.