all groups > sql server reporting services > may 2007 >
You're in the

sql server reporting services

group:

expression



expression brian
5/24/2007 12:46:03 PM
sql server reporting services: In RS, is it possible to code an expression so that if a field contains the
word "STAT" that whole row is highlighted in another color? If not, how about
a that field?

I can do it with numeric values, not text.


Re: expression EMartinez
5/24/2007 6:37:50 PM
[quoted text, click to view]


In Layout view, select the field that you want to change the
background color for and select F4 (for the Properties window). To the
right of Background Color, select <Expression...> and enter an
expression similar to the following:
=iif(Fields!FieldName.Value Like "*STAT*", "Orange", "White")
Hope this helps.

Regards,

Enrique Martinez
Sr. Software Consultant
Re: expression brian
5/24/2007 7:12:00 PM
That worked. I ad the syntax wrong. Thanks!

[quoted text, click to view]
Re: expression EMartinez
5/26/2007 6:15:57 PM
[quoted text, click to view]


You're welcome. Glad I could be of assistance.

Regards,

Enrique Martinez
Sr. Software Consultant
AddThis Social Bookmark Button