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!

counting fields in access report 1

Status
Not open for further replies.

Grieve1

Programmer
Jun 11, 2008
33
GB
I have a report that has a field Trade and I can place a count function that will tell me individually how many employees have what trade in the Trade Footer, and if I do a count in report footer I get an over all count of all trades. What I want to be able to do is place an individual and overall count in report footer. Any help would be a great help have already seen done but dont know how to do. Thanks
 
It is probably best to use a subreport.
 
How about two running sum fields, one set to over all one set to over group, and then place a control in the footer that has control source of =me!MyRunningSum1 or =me!MyRunningSum2?

You can of course set the running sums to invisble so the user doesn't see them

JB
 
Hi Remou I have put in a subreport but it is only picking up last trade don't know why because when same count is done on main form it picks up all
 
Did you put the subreport in the report footer? What was the SQL for the subreport?
 
SELECT [qrycounting tradeClockings].Trade FROM [qrycounting tradeClockings];
 
You need something on the lines of:

[tt]SELECT [tradeClockings].Trade, Count([tradeClockings].Trade)
FROM [tradeClockings]
GROUP BY [tradeClockings].Trade[/tt]
 
Many Thanks to you all for your invaluable assistance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top