Sorting by year

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?
 
J

John W. Vinson

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.
 
K

KARL DEWEY

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

Report Total 1
Query 2
Count help needed 4
Grouping by Date 3
Access MSACCESS - Sorting report based on field calculated in the report 0
Sorting Month-Year in Query 7
Change a report to a query 1
Sub report data not right? 2

Top