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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Like Formula, picks up some, not all fields

Status
Not open for further replies.

jrhessey

IS-IT--Management
Feb 25, 2005
37
0
0
I'm trying to figure out what I've done wrong, but can't seem to make sense of it. I'm trying to conditional formatting of fields that have certain text in a description.

Here is the formula:

if {SO_24CRWPickingSheet.ItemDescription} like "Discontinued" then crBold else
if {SO_24CRWPickingSheet.ItemDescription} like "discontinued" then crBold

Now if the Description field has Discontinued and only Discontinued then it works, but it has anything else after Discontinued, then it doesn't do any formatting. I'm using CR 8.5.
 
Add wild cards and address the case issue, as in:

if ucase({SO_24CRWPickingSheet.ItemDescription}) like "*DISCONTINUED*" then
crBold else
defaultattribute

-LB



 
Try:

if UCASE({SO_24CRWPickingSheet.ItemDescription})like "*DISCONTINUED*" then
crBold
else
crregular

-k
 
put an * (asterick) after discontinued. that should do the trick... it's simply wild carding
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top