Report Parameters

  • I need a default Values of Date formulars for "Month" and "Year" as some of my parameters in my report.

    e.g. In my Date formular "Day" parameter is also one of my report parameters and I have a formular that works perfect for this parameter to give me the previous date day "=DateAdd(DateInterval.Day, -1, Today)"

    Please assist me with current "Month" and "Year" formular

    Your assistance will be gladly accepted

  • You can use the DatePart function to extract components of a date.

    See here

  • or is the question -

    how do i get current date i.e select getdate() ?

    Ells.

    😎

  • you can use MONTH and YEAR function.

  • Try this:

    Month(Parameters!MyDate.Value)

    Year(Parameters!MyDate.Value)

Viewing 5 posts - 1 through 4 (of 4 total)

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