Solved

Reporting Services - change text color depending on value

Posted on 2006-06-15
3
2,103 Views
Last Modified: 2008-02-01
This seems like it should be extremely easy to do.

I have a report that just lists quantity and description of a product.

If the quantity is 10 or less, I want the quantity field to display in red, otherwise black.

Where do I put this when creating a report using SQL Server Reporting Services.

Thanks.
0
Comment
Question by:LATurk
3 Comments
 
LVL 20

Accepted Solution

by:
Sirees earned 250 total points
ID: 16912322
0
 
LVL 11

Expert Comment

by:Ved Prakash Agrawal
ID: 16912398
you need to use expression of color property of textBox.

and apply following expression at there
=IIF(quantity <=10,red,black)

you can apply this ysntax everywhere in report.
e.g. in detail section where this type of thing mostly used or page header , page footer....etc.


but for u r situation should be in detail section.

expression can be used for most of the property.


cheers!!!!!!!!!!!!!!
0
 

Author Comment

by:LATurk
ID: 16912461
Thank You.  I could not figure out where to put the statement at.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now