I have a query that calculates totals and groups them by month, in chronological order. Here is the code...
This query was constructed this way because Access previously displayed the months in alphabetical order, rather than chronological.
My problem is that when I try to create a report based on that query, the months are displayed alphabetically instead of chronologically.
Can anyone help me get the months to display correctly?
Thanks.
SK
Code:
SELECT Format$([Date],'mmmm yyyy') AS [Date By Month], Count(*) AS [Total Policies], Sum(TransactionsTable.Amount) AS [Total $]
FROM TransactionsTable
WHERE (((TransactionsTable.Agent)='S'))
GROUP BY Format$([Date],'mmmm yyyy'), Format$([Date],'yyyymm')
ORDER BY Format$([Date],'yyyymm');
This query was constructed this way because Access previously displayed the months in alphabetical order, rather than chronological.
My problem is that when I try to create a report based on that query, the months are displayed alphabetically instead of chronologically.
Can anyone help me get the months to display correctly?
Thanks.
SK