Date Parameter

  • Hi everyone, I have a report where the date range is: "BETWEEN DATEADD(MONTH, - 12, @StartDate) AND dbo.DateOnly(@StartDate))". The Parameter is @StartDate. I would like to be able to view the results in the end report, so I have the PARAMETERS!StartDate.Value, how do I add in the negative 12 months?

    The end result would look like "Report for 1/1/2009 - 1/1/2010".

    Thanks in advance!

  • You'd put something like the following into your field.

    ="Report for dates between " & DateAdd("M",-12,Parameters!startdate.Value) & " and " & Parameters!startdate.Value

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply