Calculating Percent of a Group in Report Footer

H

h2fcell

Using Access 2007, I created a report that uses a query as the Record Source.
By way of a form, I allow the user to select a date range to run the report.
The report Groups data by Company_ID which has a Footer for Totals.
The report also delivers report totals in the Report Footer.

I am drawing a blank on how I would create Company_ID specific percent of
Total in the Report Footer, because the Date range selection always changes
the list of companies and report totals.

Is there a simple way to solve this?
Thanks.
 
M

Marshall Barton

h2fcell said:
Using Access 2007, I created a report that uses a query as the Record Source.
By way of a form, I allow the user to select a date range to run the report.
The report Groups data by Company_ID which has a Footer for Totals.
The report also delivers report totals in the Report Footer.

I am drawing a blank on how I would create Company_ID specific percent of
Total in the Report Footer, because the Date range selection always changes
the list of companies and report totals.


I think this is a good case for a subreport. First create a
Totals type query that uses the same date range parameters
from the form and calculates the aggregates for each
company. Then it can calculates the company percentages
using the grand total in the main report as the divisor.
 
H

h2fcell

Marshall,
Thank you very much. I created the query and subreport just as you
suggested and it worked like a charm.
 

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