A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count total records by date



 
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2010, 06:11 PM posted to microsoft.public.access.gettingstarted
dspencer
external usenet poster
 
Posts: 4
Default Count total records by date

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.

--
Novice Access User
  #2  
Old March 23rd, 2010, 06:34 PM posted to microsoft.public.access.gettingstarted
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Count total records by date

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]) ;

--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"DSpencer" wrote:

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.

--
Novice Access User

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.