J
Jason Byrnes
I'm trying to put together a Bi-monthly crosstab query. So far I've figured
ho to get the results I want on a monthly or quartly basis, but I cannot
figure out how to put together the Bi-monthly Query.
For the Monthly query I have:
TRANSFORM Sum(tblInsect_Event.Number) AS SumOfNumber
SELECT Format([DateFound],"mmm") AS Expr2
FROM tblInsect_Event
GROUP BY Month([DateFound]), Format([DateFound],"mmm")
PIVOT Year([DateFound]);
and for the Quartly query:
TRANSFORM Sum(tblInsect_Event.Number) AS SumOfNumber
SELECT "Qtr" & DatePart("q",[DateFound],1,0) AS Expr2
FROM tblInsect_Event
GROUP BY "Qtr" & DatePart("q",[DateFound],1,0)
PIVOT Year([DateFound]);
How can I change this to give me Bi-monthly totals?
Thanks
Jason
--
~~~~~~~~~~
__o
_-\<,_ Jason Byrnes
(_)/ (_)
~~~~~~~~~~
ho to get the results I want on a monthly or quartly basis, but I cannot
figure out how to put together the Bi-monthly Query.
For the Monthly query I have:
TRANSFORM Sum(tblInsect_Event.Number) AS SumOfNumber
SELECT Format([DateFound],"mmm") AS Expr2
FROM tblInsect_Event
GROUP BY Month([DateFound]), Format([DateFound],"mmm")
PIVOT Year([DateFound]);
and for the Quartly query:
TRANSFORM Sum(tblInsect_Event.Number) AS SumOfNumber
SELECT "Qtr" & DatePart("q",[DateFound],1,0) AS Expr2
FROM tblInsect_Event
GROUP BY "Qtr" & DatePart("q",[DateFound],1,0)
PIVOT Year([DateFound]);
How can I change this to give me Bi-monthly totals?
Thanks
Jason
--
~~~~~~~~~~
__o
_-\<,_ Jason Byrnes
(_)/ (_)
~~~~~~~~~~