crystal report shading

Does anyone know the syntex if i have an ID called Directs I want shading anything else no color.

example
if RecordNumber Mod 0 = 0 Then silver Else NoColor

Open in new window

LVL 9
Seven priceFull StackAsked:
Who is Participating?
 
mlmccConnect With a Mentor Commented:
Try it this way

If {IDfield} = 'Directs' then
   crSilver
else
   crNoColor

mlmcc
0
 
Seven priceFull StackAuthor Commented:
getting error also when I input the syntex you provided I get the ID field highlighted and it says field not known.

Error in File  C:\WINDOWS\TEMP\temp_a1312633-eaf1-4fa9-a1e0-b62104b1863c.rpt: Error in formula  <Section_Back_Color>. 'If {ID} = 'Directs' then ' This field name is not  known.

If {ID} = 'Directs' then
   crSilver
else
   crNoColor

Open in new window

0
 
Seven priceFull StackAuthor Commented:
never mind I know one sec
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Seven priceFull StackAuthor Commented:
Ok I got that part. But what if I want just the text highlighted not the background?

If {item.ID} = 'Directs' then
   crSilver
else
   crNoColor

Open in new window

0
 
mlmccCommented:
Use the FORMULA BUTTON on the FONT page and change the color

mlmcc
0
 
Seven priceFull StackAuthor Commented:
No I already got it, But thanks for the reply.
0
All Courses

From novice to tech pro — start learning today.