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!

Displaying subreport grp totals on matching main report grp sectio

Status
Not open for further replies.

Apollo6

Technical User
Jan 27, 2000
418
US
Crystal Verson 8.5 Developer

I have a main report that has a single grouping, Revenue Center. In this group's footer, I total/display charges. I have a subreport that also has the same layout except is pulls payments and totals/displays in the subreport's group footer. The two reports are linked by revenue center.

What I want to do is display the total payments for the various revenue centers in the main report group footer. What I keep getting is the payments for all the revenue centers on every revenue center on the main report.

Where do I place the subreport so that the associated revenue center for payments only displays on the main report matching revenue center? Do I need to use a shared variable?

Thanks for any assistance and if I need to provide more information or clarify, please let me know.

Example:

Main-RevCtr1 Charges-$1000 Payments-$750
$570
$850

RevCtr2 Charges-$1700 Payments-$750
$570
$850

RevCtr3 Charges-$2500 Paymetns-$750
$570
$850
 
Place the subreport in the revenue group header or footer, and LINK by the revenue center.

This will cause the subreport to filter for each revenue center.

This sounds like what you tried, so you may have some other factor involved, check the record selection in the subreport.

-k
 
Your correct about the other factor. Actually what I've found is that the revenue center is the second table(subreport data) is a different type of revenue center so it basically would not find a match to the revenue center on the main report. The two tables are linked by a charge(invoice) number.

I will have to rethink how to go about this. In the meantime, I've just added the subreport in the report footer. Not exactly what I wanted but it will work for now.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top