Conditional formatting of background color
Posted: Thu Dec 20, 2012 7:10 pm
I have a query that returns a status message ("Operating," "Down for maintenance," etc.) as well as the background color to use to display the status message ("000000", "FF0000", etc.).
How do I set the background color based on the data returned by the query? Ideally, I'd be able to do this using the Conditions dialog in the Designer.
I found a post that said to do the following:
Thanks
How do I set the background color based on the data returned by the query? Ideally, I'd be able to do this using the Conditions dialog in the Designer.
I found a post that said to do the following:
But I'm not clear where I put this. I tried double-clicking on the text cell in the table and going to the Summary tab and entering this as a Condition, but I get errors when attempting to run my report.Dim backColor As String
backColor = {Field.FieldValue}
Text1.Brush = New StiSolidBrush(ColorTranslator.FromOle(backColor))
Thanks