Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9238

Re: Having difficult time getting subtotals to work

$
0
0

Ah that helps.

 

Modify the formula on the Details section to:

 

whileprintingrecords;
numbervar pen;

numbervar gh1_sub;


if {prhpost.postcode} = '001' then
    pen := pen + {prhpost.amount};

    gh1_sub := gh1_sub + pen;

    pen;

 

Create a formula with this code and place it on the Group Footer 1 to display the total:

 

whileprintingrecords;
numbervar gh1_sub;


Create a reset formula with this code and place this on the Group Header 1:


whileprintingrecords;
numbervar gh1_sub := 0;


-Abhilash



Viewing all articles
Browse latest Browse all 9238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>