Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Print From Post Reply Post New Topic
Author Message
Mel B
Newbie
Newbie
Avatar

Joined: 17 Feb 2011
Location: Australia
Online Status: Offline
Posts: 5
Quote Mel B Replybullet Topic: Print From
    Posted: 16 Aug 2012 at 4:27pm
How can I select a word in a memo field and print from that word onwards to the end of the memo field.
 
ie.  Our staff enter a range of comments then add a Plan - they often type in Plan:, plan;, Plan, plan - no standard way.
 
I tried using
 
if instr({@Service Comments}, "Plan",  1)>0
then right ({@Service Comments}, instr ({@Service Comments}, "Plan"))
else ""
 
but it brings up some surprising results;
 
The full comments field is as below:
 
P/C to Phillip to inform him of appt details.Says he did not sleep well last night. Eventually fell asleep at 0630hrs and has just got up not long ago (hence phone conversation kept short).  Plans to go to the beach later this afternoon. PLANappt with Prof Kalucy 22/8 @ 0930hrs, room 34, taxi booed for 0900hr P/U through receptionP/C 17/8 pm to monitor mental state and safety
 
Using the formula it brings up the following - starting from ion from the word conversation above.
 
ion kept short).  Plans to go to the beach later this afternoon. PLANappt with Prof Kalucy 22/8 @ 0930hrs, room 34, taxi booed for 0900hr P/U through receptionP/C 17/8 pm to monitor mental state and safety
 
 
Melanie Ball
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 17 Aug 2012 at 1:17am
assuming you only want from the last plan, not the first use
right ({@Service Comments}, len({@Service Comments})-instrREV (UCASE({@Service Comments}), "PLAN")+1)

 
IP IP Logged
Mel B
Newbie
Newbie
Avatar

Joined: 17 Feb 2011
Location: Australia
Online Status: Offline
Posts: 5
Quote Mel B Replybullet Posted: 19 Aug 2012 at 5:20pm
Thanks for your help - much appreciated.  It worked well
Melanie Ball
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.