ready4data
06-04-2002, 10:58 AM
I'm trying to sort the colums by month/year
10/01 11/01 12/01 01/02 02/02 03/02
here is the query:
TRANSFORM Sum(tblFBA_DATA.CALLS) AS [The Value]
SELECT tblFBA_DATA.NAME
FROM tblFBA_DATA
GROUP BY tblFBA_DATA.NAME
PIVOT Format([LAST_SRVC_DATE],"mmm/yy");
The value for the months isn't static, it is a live 6 month view looked at every month.
Someone gave me this formula to use and sort by:
(Year([DATE])*12+Month([DATE])-1)
It sorts the columns right but the values are 24021 to 24026 not the mmm/yy that I need.
If I try to use it in another column in the query and sort on it I get the message:
"You tried to execute a query that doesn't include the specific expression .see above. as part of an aggregate function. "
Has anyone had luck sorting like this? Help!
Scott
10/01 11/01 12/01 01/02 02/02 03/02
here is the query:
TRANSFORM Sum(tblFBA_DATA.CALLS) AS [The Value]
SELECT tblFBA_DATA.NAME
FROM tblFBA_DATA
GROUP BY tblFBA_DATA.NAME
PIVOT Format([LAST_SRVC_DATE],"mmm/yy");
The value for the months isn't static, it is a live 6 month view looked at every month.
Someone gave me this formula to use and sort by:
(Year([DATE])*12+Month([DATE])-1)
It sorts the columns right but the values are 24021 to 24026 not the mmm/yy that I need.
If I try to use it in another column in the query and sort on it I get the message:
"You tried to execute a query that doesn't include the specific expression .see above. as part of an aggregate function. "
Has anyone had luck sorting like this? Help!
Scott