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!

Subtotal not working

Status
Not open for further replies.

alvintse

Programmer
Aug 1, 2003
66
US
Hi,
I have a quarterly report with the grouping as below:

Agency (Group header)
center (group header)
department (group header)
item(group header)
detail section: mon itemName total amount
total for the department (department footer)
total for the center (center footer)
total for the agency (agency footer)

The report returns the correct result as long as the item for the department display on the same page. Whenever it split into 2 pages, it added the total amount one more time.

Please help!

 
How are you calculating subtotals? Are you using code somewhere rather than the standard method of creating totals in reports?

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Yes. I am usinc code to add the total amt at the detail section.
 
Why? Totals are normally created without code. You should be able to use control sources like:
=Sum([A Numeric Field or Expression])
or
=Count([Any Field or Expression])

If you have something special about your report then you need to tell us about it. This would include your code and why you are using it.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top