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

Using 'Fill Colour'

Status
Not open for further replies.

maeling

Technical User
Sep 23, 2002
109
GB
I have a report that has a small square box on it.
I would like to use an if statement to fill the box (black) when a certain crieria is met Else don't fill and leave white. Does any body know the syntax ?

IF {blank square??} STARTSWITH "NIGHT" THEN {fill black} ELSE "
 
[ol][li]Insert an empty text object on the report canvas and resize it to fit your needs[/li]
[li]Right click on the text object and click on Borders and colors[/li]
[li]Under the color section click on the x+2 button that is associated with the Background and enter your formula[/li]
Code:
if {table.field} = "value" then
  crblack
else
  nocolor
[/ol]

Cheers,
-LW
 
Make sure that after you do the above and pull the empty text to the place when you need it, right click on the empty test and select move -> to back.

If you do not do this, alternate rows are colored but the data would not be visible.

-Raj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top