T
Tim Long
Hello, I have a crosstab query/report that displays data by month (columns)
and activity (rows). As the activity data is text, the sort option appears to
be restricted to ascending/descending.. ie alphabetical, but I need the rows
to be listed in my own specified order. Is there any way I can achieve this?
My query is as follows:
TRANSFORM Count(tblDataForCrosstab.Client_ID) AS CountOfClient_ID
SELECT tblDataForCrosstab.Activity
FROM tblDataForCrosstab
GROUP BY tblDataForCrosstab.Activity
ORDER BY MonthName([DataMonth])
PIVOT MonthName([DataMonth]) In
("January","February","March","April","May","June","July","August","September","October","November","December");
I have added a field - a number corresponding to each activity that could
be used for sorting purposes - to the query that populates tblDataForCrosstab
when the report containing the crosstab is run. Could I somehow use the
contents of that column to achieve the correct sort order?
Many thanks in advance
Tim Long
and activity (rows). As the activity data is text, the sort option appears to
be restricted to ascending/descending.. ie alphabetical, but I need the rows
to be listed in my own specified order. Is there any way I can achieve this?
My query is as follows:
TRANSFORM Count(tblDataForCrosstab.Client_ID) AS CountOfClient_ID
SELECT tblDataForCrosstab.Activity
FROM tblDataForCrosstab
GROUP BY tblDataForCrosstab.Activity
ORDER BY MonthName([DataMonth])
PIVOT MonthName([DataMonth]) In
("January","February","March","April","May","June","July","August","September","October","November","December");
I have added a field - a number corresponding to each activity that could
be used for sorting purposes - to the query that populates tblDataForCrosstab
when the report containing the crosstab is run. Could I somehow use the
contents of that column to achieve the correct sort order?
Many thanks in advance
Tim Long