J
JasonM
Good morning all! I am not sure if this is a Report problem or a Query
problem, but since I can get the data to display correctly in the Query some
of the time I think it is a query or data problem...without sorting inteh
query I get data anomolies as shown below:
qryAnnualFiscalTest MRDate Year FiscalYear FiscalMonth
5/25/2005 2005 2005 11
5/26/2005 2005 2005 11
5/27/2005 2005 2005 11
9/20/2005 2005 2006 3
9/21/2005 2005 2006 3
9/22/2005 2005 2006 3
9/23/2005 2005 2006 3
9/24/2005 2005 2006 3
9/25/2005 2005 2006 3
9/26/2005 2005 2006 3
9/27/2005 2005 2006 3
9/28/2005 2005 2006 3
9/29/2005 2005 2006 3
9/30/2005 2005 2006 3
10/1/2005 2005 2006 4
10/2/2005 2005 2006 4
10/3/2005 2005 2006 4
10/4/2005 2005 2006 4
10/5/2005 2005 2006 4
5/28/2005 2005 2005 11
5/29/2005 2005 2005 11
5/30/2005 2005 2005 11
5/31/2005 2005 2005 11
6/1/2005 2005 2005 12
6/2/2005 2005 2005 12
The data in the table is sequential; I can sort the query and it appears in
ascending date order. When I base a report on the Query, however, (even wit
hsorting and grouping) it still shows the dates in the wrong order!
I am grouping a report based upon our fiscal year which is calculated as
follows:
FiscalYear:
Year([mrdate])-IIf([mrdate]<DateSerial(Year([mrdate]),7,1),1,0)+1
I also have created a field for fiscal month:
FiscalMonth: (Month([mrdate])+IIf(Day([mrdate])<1,7,6)-1) Mod 12+1
First question: Is this a query problem a data problem or a report problem?
Second question: does anyone have any suggestions for a fix? I have
recreated both the query and report several times only to get the same
results.
Thanks in advance for any assistance!
Jm
problem, but since I can get the data to display correctly in the Query some
of the time I think it is a query or data problem...without sorting inteh
query I get data anomolies as shown below:
qryAnnualFiscalTest MRDate Year FiscalYear FiscalMonth
5/25/2005 2005 2005 11
5/26/2005 2005 2005 11
5/27/2005 2005 2005 11
9/20/2005 2005 2006 3
9/21/2005 2005 2006 3
9/22/2005 2005 2006 3
9/23/2005 2005 2006 3
9/24/2005 2005 2006 3
9/25/2005 2005 2006 3
9/26/2005 2005 2006 3
9/27/2005 2005 2006 3
9/28/2005 2005 2006 3
9/29/2005 2005 2006 3
9/30/2005 2005 2006 3
10/1/2005 2005 2006 4
10/2/2005 2005 2006 4
10/3/2005 2005 2006 4
10/4/2005 2005 2006 4
10/5/2005 2005 2006 4
5/28/2005 2005 2005 11
5/29/2005 2005 2005 11
5/30/2005 2005 2005 11
5/31/2005 2005 2005 11
6/1/2005 2005 2005 12
6/2/2005 2005 2005 12
The data in the table is sequential; I can sort the query and it appears in
ascending date order. When I base a report on the Query, however, (even wit
hsorting and grouping) it still shows the dates in the wrong order!
I am grouping a report based upon our fiscal year which is calculated as
follows:
FiscalYear:
Year([mrdate])-IIf([mrdate]<DateSerial(Year([mrdate]),7,1),1,0)+1
I also have created a field for fiscal month:
FiscalMonth: (Month([mrdate])+IIf(Day([mrdate])<1,7,6)-1) Mod 12+1
First question: Is this a query problem a data problem or a report problem?
Second question: does anyone have any suggestions for a fix? I have
recreated both the query and report several times only to get the same
results.
Thanks in advance for any assistance!
Jm