B
blinton25
Hello,
How are you today?
I have the following crosstab query:
Code:
--------------------
PARAMETERS PREVIOUSYear Text ( 255 ), CURRENTYear Text ( 255 );
TRANSFORM "~" & Count(IIf(DatePart('yyyy',[F_ARRV_DAT],1,0)=PreviousYear,
[_Final_Clean Tourists Query].[TRAV-KEY]))
& "~" &
Count(IIf(DatePart('yyyy',[F_ARRV_DAT],1,0)=CurrentYear,
[_Final_Clean Tourists Query].[TRAV-KEY])) AS Expr1
SELECT [_Final_Clean Tourists Query].REGIONS3,
[_Final_Clean Tourists Query].regionorder
FROM
[_Final_Clean Tourists Query]
WHERE [_Final_Clean Tourists Query].REGIONS3<>''
GROUP BY [_Final_Clean Tourists Query].regionorder,
[_Final_Clean Tourists Query].REGIONS3
PIVOT Format([F_ARRV_DAT],"mmmm") in ("January", "February", "March",
"April","May","June",
"July","August","September",
"October","November","December");
--------------------
which produces a result set looling like
Code:
--------------------
REGIONS3 regionorder January February March April
USA 1 ~128~399 ~80~428 ~606~58 ~~
CANADA 2 ~166~336 ~294~267 ~624~32 ~~
--------------------
(I took off the Months May to December for clarity)
and I build a report which looks like this:
Code:
--------------------
REGIONS3 January February March April
2001 2002 2001 2002 2001 2002 2001 2002
USA 128 399 80 428 606 58 0 0
CANADA 166 336 294 267 624 32 0 0
--------------------
1. I wish to print only three months on each page of my report (Jan -
Mar, Apr-June etc) but because Access only allows me a horizontal
report size of 22" I can't fit all of my fields on the report (I get as
far as October and then run out of space). How do I force a page break?
I should be able to use a Group by Interval but does that mean I have
to change my query since I can only group on maximum four items?
Feel free to respond with any questions or requests for clarifications.
How are you today?
I have the following crosstab query:
Code:
--------------------
PARAMETERS PREVIOUSYear Text ( 255 ), CURRENTYear Text ( 255 );
TRANSFORM "~" & Count(IIf(DatePart('yyyy',[F_ARRV_DAT],1,0)=PreviousYear,
[_Final_Clean Tourists Query].[TRAV-KEY]))
& "~" &
Count(IIf(DatePart('yyyy',[F_ARRV_DAT],1,0)=CurrentYear,
[_Final_Clean Tourists Query].[TRAV-KEY])) AS Expr1
SELECT [_Final_Clean Tourists Query].REGIONS3,
[_Final_Clean Tourists Query].regionorder
FROM
[_Final_Clean Tourists Query]
WHERE [_Final_Clean Tourists Query].REGIONS3<>''
GROUP BY [_Final_Clean Tourists Query].regionorder,
[_Final_Clean Tourists Query].REGIONS3
PIVOT Format([F_ARRV_DAT],"mmmm") in ("January", "February", "March",
"April","May","June",
"July","August","September",
"October","November","December");
--------------------
which produces a result set looling like
Code:
--------------------
REGIONS3 regionorder January February March April
USA 1 ~128~399 ~80~428 ~606~58 ~~
CANADA 2 ~166~336 ~294~267 ~624~32 ~~
--------------------
(I took off the Months May to December for clarity)
and I build a report which looks like this:
Code:
--------------------
REGIONS3 January February March April
2001 2002 2001 2002 2001 2002 2001 2002
USA 128 399 80 428 606 58 0 0
CANADA 166 336 294 267 624 32 0 0
--------------------
1. I wish to print only three months on each page of my report (Jan -
Mar, Apr-June etc) but because Access only allows me a horizontal
report size of 22" I can't fit all of my fields on the report (I get as
far as October and then run out of space). How do I force a page break?
I should be able to use a Group by Interval but does that mean I have
to change my query since I can only group on maximum four items?
Feel free to respond with any questions or requests for clarifications.