Sorting by year

  • Thread starter Thread starter Anne
  • Start date Start date
A

Anne

I would like to sort a report by the year of purchase. I have a report that
sorts by date and gives me a total for each period. The report is grouping
by month and I want to group by year. Any suggestions?
 
I would like to sort a report by the year of purchase. I have a report that
sorts by date and gives me a total for each period. The report is grouping
by month and I want to group by year. Any suggestions?

Correct the query upon which the report is based (and which you chose not to
post, so we cannot see it to help you do so).

My only guess is that you're -somewere - using a calculated field like
Month([datefield]), and you need to change it to Year([datefield]).

Open the report's Recordsource query, select View... SQL, and post the SQL
text here if you need help.
 
Open report in design view, click on Sorting and Grouping and select your
date field.
Format the date field like ---
=Format([YourDateField], "yyyy")

Set a group header/footer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Grouping and sorting 14
sorting a report with two tables 1
Access MSACCESS - Sorting report based on field calculated in the report 0
Grouping by Date 3
sorting and grouping 1
Report Total 1
Query 2
Sub report data not right? 2

Back
Top