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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

several record counts in the same report

Status
Not open for further replies.

Cretin

Technical User
Jan 2, 2003
194
US
I am using access 2007 for a change management database. It has been used since 2007. I would like to do an annual report with the count for each year to display on the report. I tried the sum(abs) and count to no avail. I am putting parameters in so for one count it will get me anything greater than 12/31/2006 and less that 1/1/2008 but it's not working. Does anyone have any idea the best way to do this?

Cretin
 
select year(datefield),count(*)
From YourTable
group by year(datefield)
 
Worked like a champ thank you.

Cretin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top