SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an rdl report with a description field I want to emphasize the field when it contains "error". What am I supposed to do?
Thanks
If you say "error" in a fixed way, then you only need to use an expression like the following in the background color.
=iif(Fields!Description.Value.ToString.Contains("Error"),"yellow",nothing)
If you want "error" in the field to be case-insensitive, then you can use LCASE to convert the string to all lowercase first, and then look for "error", like this:
=iif(LCASE(Fields!Description.Value).ToString.Contains("error"),"yellow",nothing)
Preview:
Best regards,
Aniya