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: Yesterday @ 1:56 PM
Points: 267, Visits: 424
Looking to use a parameter filed -21 days for a field header in MM/YY format?

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


SSC-Addicted

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

Group: General Forum Members
Last Login: Tuesday, April 01, 2014 2:57 PM
Points: 443, Visits: 822
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