A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Total Main report with two subreports



 
 
Thread Tools Display Modes
  #1  
Old August 14th, 2007, 03:06 PM posted to microsoft.public.access.reports
JVMartin
external usenet poster
 
Posts: 4
Default Total Main report with two subreports

I have two subreports on a main report. There are 3 sorting groups: Center,
Facility, Name. On both sub reports in Last Name Footer I have text fields -
txtTotal =Sum([Total Price]). On the Main report, in the last name Footer I
have a text field - txtGrandTotal
=IIf([subrpt1].Report.HasData,[subrpt1].Report!txtTotal,0)+IIf([subrpt2].Report.HasData,[subrpt2].Report!txtTotal,0).
This works perfectly for a total on each name on the main report.

The problem is getting Per Facility, Per Center, and Overall Grand Totals.
How do I do this. I've tried putting a text field in the footer with
=Sum(txtGrandTotal) but this doesn't work. I've tried using the same formula
as in the last name footer and that doesn't work and yes I'm a novice.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.