G
Guest
I am using the following to extract this years sales to date for a report,
DatePart("yyyy",[reports]![rptSalesMaster].[Month]), by comparing the last 4
chars of the dates in the table to the year part of a date input as the
report is run.
I also need to use the same input date to extract the sales for last year. I
suspect I need to used DateAdd in the select criteria but cannot work out how
to extract last years data.
Any ideas?
DatePart("yyyy",[reports]![rptSalesMaster].[Month]), by comparing the last 4
chars of the dates in the table to the year part of a date input as the
report is run.
I also need to use the same input date to extract the sales for last year. I
suspect I need to used DateAdd in the select criteria but cannot work out how
to extract last years data.
Any ideas?