Hello,
I have built a crosstab query to calculate a sum for a specified date. ACCESS automatically populates the query alphabetically by the "CourtTimeSaved" column, however, I want a different ORDER BY list. How may I do that?
The options for "CourtTimeSaved" are:
- Morning Chambers application
- Special Chambers application
- Trial
- Unknown
- None
Thank you!
I have built a crosstab query to calculate a sum for a specified date. ACCESS automatically populates the query alphabetically by the "CourtTimeSaved" column, however, I want a different ORDER BY list. How may I do that?
Code:
TRANSFORM Count([Court Time Saved].ID) AS CountOfID
SELECT [Court Time Saved].CourtTimeSaved, Count([Court Time Saved].ID) AS Total
FROM [Court Time Saved]
GROUP BY [Court Time Saved].CourtTimeSaved
PIVOT Format([Date(s)],"mmm") In ("Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Jan","Feb","Mar");
The options for "CourtTimeSaved" are:
- Morning Chambers application
- Special Chambers application
- Trial
- Unknown
- None
Thank you!