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, July 23, 2014 2:00 PM
Points: 295, Visits: 488
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: Wednesday, July 16, 2014 3:03 AM
Points: 450, Visits: 842
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