dynamically change the background, foreground colors of a cell based on contents

  • I have a report showing SOURCE & TARGET DB rowcounts.  I'd like the cell on the report to have it's background highlighted in RED w/ the text highlighted in WHITE whenever the rowcounts mismatch. 

    Example:

    TABLE1  Source Rowcount=250    Target Rowcount=250

    TABLE2  Source Rowcount=9912  Target Rowcount=0

    TABLE3  Source Rowcount=54    Target Rowcount=54

    Does anyone know how to dynamically change the background, foreground colors of a cell based on contents?

    BT
  • You can go to the "Expression" settings in the properties box for each of those and do something like this:

    =IIf(Fields!Source_Rowcount.Value Fields!Target_Rowcount.Value, "Red", "White")

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply