SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 'IF' statement for Font Color
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tech2
Starting Member

38 Posts

Posted - 01/15/2014 :  13:16:15  Show Profile  Reply with Quote
Trying to use the expression below to change font to 'Red' when the text ends with a 'U'.

=IIf(Fields!ItemNumber.Value.ToString().Contains("*U"),"Red","Black")

The Report displays but the expression doesn't change any of the text items to Red.

Any help would be highly appreciated.

Report Builder 3.0 R2, SSRS 2008

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/16/2014 :  05:22:08  Show Profile  Reply with Quote
=IIf(Right(Fields!ItemNumber.Value,1) = "U","Red","Black")



------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

tech2
Starting Member

38 Posts

Posted - 01/16/2014 :  12:57:56  Show Profile  Reply with Quote
Thanks! It works perfect!


quote:
Originally posted by visakh16

=IIf(Right(Fields!ItemNumber.Value,1) = "U","Red","Black")



------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 01/16/2014 :  14:08:21  Show Profile  Reply with Quote
Cheers!

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000