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

subtotal on amount from subreport

Status
Not open for further replies.

suburbanites

Programmer
Aug 16, 2007
75
US
Hi All,

I am using CRXI SP2. I have the following formulas in my main report:

// on GH4a
WhilePrintingRecords;
Shared NumberVar totamtprev:= 0;

//on GH4b
WhilePrintingRecords;
shared NumberVar totamtprev;
Global numbervar tot_prev:= tot_prev + totamtprev;
totamtprev

//on GF3
WhilePrintingRecords;
Global numbervar tot_prev;
tot_prev

These are my groupings:

sub_hdr
table.object_id
table.summ_acct_id
table.accounts
@accounts


This is all working out well other than I need to be able to do a subtotal on totamtprev for change in @accounts.

Any help will be greatly appreciated.

Thanks

 
Why dont you do subtotals in subreport it self and add those subtotals to main report subtotals
 
In your main report, create a second Numbervar and when you add your totamtprev in GH4b add to this field also. Then clear this Numbervar after you print the subtotal.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top