Ron in NYC
Registered User.
- Local time
- Today, 03:53
- Joined
- Mar 4, 2016
- Messages
- 30
I created a query that sums hours worked by month. When I sort it in the report, it sorts alphabetically instead of by date. How do I fix that? Thanks.:banghead:
In this query, add a field that is the number of the month. Include that field in the report, and then your sort is trivial.based on a query summarizing data by month.
Field: | Month: Month([ItemDate]) | Year: Year([ItemDate])
Table: | YourTable | YourTable
Total: | Group By | Group By
How do you "summarize data by month" in your existing query? I would expect to see a date field on which you run the VBA.Month() function, and then GROUP BY that field, simillarly with the Year.
How do you get the name of the month in your query?Code:Field: | Month: Month([ItemDate]) | Year: Year([ItemDate]) Table: | YourTable | YourTable Total: | Group By | Group By