I simply used Select GetDate() as EndDate, DateAdd(day, -7, GetDate()) as
StartDate.
"Robert Bruckner [MSFT]" wrote:
> Delete the existing report and re-publish the report with expression-based
> default values. The default value could be e.g. =Today.AddDays(-7) or
> =Globals!ExecutionTime.AddDays(-7)
> Note: ExecutionTime and Today return DateTime objects where you can't just
> subtract arbitrary integer values. See also:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatetimememberstopic.asp
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> "Joe Scalise" <jscalise@advantageccs.org> wrote in message
> news:%23%23GyHK%231EHA.1152@TK2MSFTNGP14.phx.gbl...
> > A report that I have run every monday requires 2 parameters. These
> param's
> > are StartDate and EndDate. Is there a way to generate these fields for
> the
> > week automatically. For example, if i schedule it to run on Monday, I
> would
> > like the start date to be Monday 11/29/04 and the EndDate to be Friday
> > 12/3/04. Otherwise I will have to setup new subscriptions for the reports
> > once a week.
> >
> > I tried using =((Globals!ExecutionTime) - 5) as the default value in the
> > report but that doesn't work.
> >
> > Thanks for the help!
> >
> >
>
>