Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

using parameter date - 21 days in field header? Expand / Collapse
Author
Message
Posted Friday, February 15, 2013 11:54 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, August 27, 2015 12:47 PM
Points: 360, Visits: 594
Looking to use a parameter filed -21 days for a field header in MM/YY format?

Thanks
Post #1420713
Posted Tuesday, March 5, 2013 5:28 PM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Tuesday, July 14, 2015 4:36 PM
Points: 544, Visits: 946
You can refer to parameter values in the report using an expression like this:

=Parameters!Parametername.value

If the parameter is a date datatype, you can use the dateadd function

=dateadd(DateInterval.Day,-21,Parameters!Parametername.value) 

Then write this into the format property for the text box

MM/yy

Post #1427091
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse