Im trying to write a report, that picks up certain records in a given month.
The report also shows a year to date and for the week for these records, which ive got working fine.
Now I know I could type the dates in at the beginning of each month but I would like to automate it. Also these periods would work the same every year, for the number of weeks in them (except when it’s a leap year I think)
Now is there a really easy way to do this, or am I hoping for far too much?
My problem is my month dates run on weird dates (ie not for the whole of June), but always start on a Sunday and finish on a Saturday eg
30th April 2006 to 27th May 2006 = May
28th May 2006 to 1st July 2006 = June
2nd July 2006 to 29th July 2006 = July
Etc wont bore with all the dates
There is a pattern I get, and this is how many weeks are in the period:
4 Weeks = May
5 Weeks = June
4 Weeks = July
4 Weeks = August
5 Weeks = September
4 Weeks = October
4 Weeks = November
5 Weeks = December
4 Weeks = January
4 Weeks = February
5 Weeks = March
4 Weeks = April
Im Using Crystal 10
The report also shows a year to date and for the week for these records, which ive got working fine.
Now I know I could type the dates in at the beginning of each month but I would like to automate it. Also these periods would work the same every year, for the number of weeks in them (except when it’s a leap year I think)
Now is there a really easy way to do this, or am I hoping for far too much?
My problem is my month dates run on weird dates (ie not for the whole of June), but always start on a Sunday and finish on a Saturday eg
30th April 2006 to 27th May 2006 = May
28th May 2006 to 1st July 2006 = June
2nd July 2006 to 29th July 2006 = July
Etc wont bore with all the dates
There is a pattern I get, and this is how many weeks are in the period:
4 Weeks = May
5 Weeks = June
4 Weeks = July
4 Weeks = August
5 Weeks = September
4 Weeks = October
4 Weeks = November
5 Weeks = December
4 Weeks = January
4 Weeks = February
5 Weeks = March
4 Weeks = April
Im Using Crystal 10