Count total records by date

D

DSpencer

I Have a table containing names, age, id number, and date of entry.
I would like to count the total number of records by month on a report.
 
J

Jerry Whittle

Do you want Dec, Jan, Feb, Mar, etc. or Dec 09, Jan 10, Feb 10...

In other words do you just want by Month or Month and Year? Also what
version of Access?

Open up a new query in design view, but don't add any tables to the grid.
Instead go to View, SQL View and paste in the following. Change the field
names to what's correct and YourTable to the correct table name.

SELECT Month([date of entry]), Count(ID)
FROM YourTable
GROUP BY Month([date of entry]) ;

or

SELECT Year([date of entry]), Month([date of entry]), Count(ID)
FROM YourTable
GROUP BY Year([date of entry]), Month([date of entry]) ;
 

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

Top