Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group records by Month? 1

Status
Not open for further replies.

Simon22

Technical User
Joined
Feb 1, 2001
Messages
54
Location
CA
Hi all,
Can someone tell me if it is possible to group records by month? I would like my query to show the sum of clientordertotals ($) by month. For example:

January: $500
February: $1000

However, I can't seem to get Access to group by month.

Thanks for your help!
 
Simon, you can groupby any field in your query. Just set up a field which returns just the month from your date field and use that. I think the syntax is Month([DateField]) Maq B-)
<insert witty signature here>
 
Thanks. That second post is exactly what I wanted. Any way to get the month name instead of the month number?
 
Look in Access help for the format and Datepart functions. One of them should do the trick. Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top