Solved

Reporting Services - change text color depending on value

Posted on 2006-06-15
3
2,126 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
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 …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

777 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