How to change the color of text in a texbox using expression in SSRS

1. Select your text-box

2. Hit F4 to open text-box properties

3. Under Font, select Color (hit drop down menu button)

4 Select Color Expression (fx)

5 Write expression as:-

= IIf ( Fields!Price.Value>0, “Black”, “Red” )

If Textbox is a computed value based on fields then:

=iif(((Fields!PRICE.Value-Fields!UNIT_COST.Value)*Fields!QTY.Value)>0,”Black”,”Red”)


Advertisements
By simplemsexchange Posted in SSRS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s