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

Report groups and subgroups

Status
Not open for further replies.

imstuck

MIS
Sep 27, 2000
18
0
0
US
I am trying to create a report that counts the number of records for a particular category and type, but also gives me a total for the category itself and then at the end a grand total.

Example:

Cat 1 Type A 5
Cat 1 Type B 2
Cat 1 Type C 9

Category 1 total 16

Cat 2 Type X 3
Cat 2 Type Y 6
Cat 2 Type Z 4

Category 2 total 13

Grand Total 29

I'm having trouble with my groupings. I have the report sorted by category, then type and I have a field in the detail section called recordcount with a controlsource of =1. I placed a text field in the type footer with a controlsource of recordcount so the totals for the types work. But I can't get the totals for the categories to work.

Is there a way to handle that? Thanks!




[sig][/sig]
 
If you put a textbox with source based on an aggregate function in the section footer, e.g. txt=Sum([catgtot]) it will give the figure for each group. If you do the same in the report header or footer it will give you the overall sum. (Go to the grouping dialogue to set Group footer to "yes" if it's not there already.) [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top