Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: highlight if only one word in string Post Reply Post New Topic
Author Message
dibblejon
Newbie
Newbie


Joined: 05 Jan 2011
Location: United Kingdom
Online Status: Offline
Posts: 32
Quote dibblejon Replybullet Topic: highlight if only one word in string
     Posted: 28 Aug 2012 at 10:01pm
Hi
 
Can someone help me with the formula I need to achieve the above
 
For example
 
field1, jon brown (don't highlight)
field1, james (highlight)
 
Thanks 
IP IP Logged
z9962
Senior Member
Senior Member
Avatar

Joined: 04 Jul 2012
Online Status: Offline
Posts: 161
Quote z9962 Replybullet Posted: 29 Aug 2012 at 12:07am

right mouse click on the field and select Format Field

Select the Border tab
to the right of backgroup click the x+2 button
 
type the following code
IF InStr ({fieldname}," ")=0 then cryellow else crnocolor
IP IP Logged
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