A
anthony.pierdominici
I have data generated from a query in the format below:
Hours | Month_#
------------------------
534 | 0
723 | 1
341 | 2
625 | 3
....
876 | 72
I need to get the data into the following format:
0 | 1 | 2 | 3 | ... | 72
---------------------------
534 | 723 | 341 | ... | 876
A crosstab query almost works when I use the actual date value (instead
of the month #) but forces the output to be consolidated into 12 months
(all March hours regardless of year are clumped together under Mar)
instead of the 72 I need. When I try to select a different date format
("mm/yy" or "short date") than "mmm" to force the query to display all
72 months it gives me an error message saying "Property not found".
When I try to use the month # it also gives me the property not found
error.
I have also tried to use a UNION query but can't seem to get the
formating right.
Can someone please tell me how to do this in an access query or point
me in the right direction if I will have to use code?
Thank you,
Anthony
Hours | Month_#
------------------------
534 | 0
723 | 1
341 | 2
625 | 3
....
876 | 72
I need to get the data into the following format:
0 | 1 | 2 | 3 | ... | 72
---------------------------
534 | 723 | 341 | ... | 876
A crosstab query almost works when I use the actual date value (instead
of the month #) but forces the output to be consolidated into 12 months
(all March hours regardless of year are clumped together under Mar)
instead of the 72 I need. When I try to select a different date format
("mm/yy" or "short date") than "mmm" to force the query to display all
72 months it gives me an error message saying "Property not found".
When I try to use the month # it also gives me the property not found
error.
I have also tried to use a UNION query but can't seem to get the
formating right.
Can someone please tell me how to do this in an access query or point
me in the right direction if I will have to use code?
Thank you,
Anthony