Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Expiration Dates

Author  Topic 

StephNeedsHelp
Starting Member

1 Post

Posted - 2009-04-23 : 14:31:26
Good Day All,

as a fairly new user I have what I think is a pretty complex question.

I'm working with health activity dates for children. The activities are good for a year from date of service. I've already selected the necessary data and I'm not at the report level (visual studio). I now need to show on the report all activities first. Then, I want to somehow highlight or distinguish those dates that are about to expire or have expired.

It would be nice if I could have those dates displayed in red or some other way.

Any thoughts would be appreciated.

Thanks Peso for the post. I think I need to explain further. This is what I have so far in one of the activities expressions:

=IIF(Fields!PhysicalExam.Value <> "01/01/1900", Fields!PhysicalExam.Value, "")

There isn't an expiration date field only completed date. So, I want to return children whose activities are within one year of the run date.

I hope that better explains what I need.

Thanks again

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-04-23 : 14:37:36
You can set the text color programmatically in the report.

Something like
=IIF(ExpireDate < Now(), "Red", "Black")



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -