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: Monday, November 24, 2014 2:55 PM
Points: 301, Visits: 500
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: Thursday, December 18, 2014 4:24 AM
Points: 495, Visits: 895
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