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
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 7:34 AM
Points: 299, Visits: 498
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


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Tuesday, August 12, 2014 10:57 PM
Points: 458, Visits: 857
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