-----Original Message-----
I have date column - [Recieved] and I need to compare 4
previous years and 4 previous months.
To show only rows for the 4 years before current year and
so on, I'm using Format(Date(),"yyyy")-4 in the Criteria
and to have fiscal year (started from August) I'm using
Rec: Year(DateAdd("m",+5,[Received])) in the Field. It
looks like working.
But, I don't know how to show rows for the month, which
is -4 month from current and so on.
Thanks
-----Original Message-----
Date()-120
Or use the datepart to evaluate what month this is and look at the datepart
of the month you are evaluating and see if it is four months ago.
This is a hard question since we don't know exactly what you want here.
February only has 28 days, so four months before March 1 (March 1 - 120
days) would be November 1. March 31 minus 120 days
would
be December 1.
So, what is it you are looking for?
Rick B
How to set up a restrictions as to show the month, which
is 4 months less from today.
I'm trying
Rec: Format([Received],"m/yyyy") in the field
and Format(Date(),"m/yyyy")-4 in criteria.
But, it says type mismatch in criteria.
Thanks
.
.