Accessing Subreports Group Section Totals in Parent Report Header

D

David

Hi,

I know how to grab report totals from a subreport.

What I wonder is: Is there a way to grab group section totals and use in the
main report.

I know this is bad programming, but I have a report grouping/totalling on a
field which has 1 of 2 values (let's say A and B). I want to have in the
Parent Report's header, the value of the subtotal for Group A, and the value
of the subtotal for Group B.

Any ideas?
Thanks.
 
A

Allen Browne

If you want to repeat each of the subreport's section's subtotals on the
main report, you'll have to do that with another subreport or listbox on the
main report. There's no reliable way to pass them back individually (as
distinct from merely passing back a subreport total to the main report each
time it occurs on the main report.)

Even if you program an array using the Print event of the subreport header
to accumulate the values, you'll find that this is unreliable, e.g. it may
not work if the user doesn't print all pages of the report, and it doesn't
work at all in Report or Layout view (Access 2007.)
 

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