OK, I created the part variables, reset, calc and display.(3 sets for three different totals. Using an example from Spiceworks.com.
Formula structure
-the first formula for calculation should be written as such;
whileprintingrecords;
shared numbervar InsSum;
InsSum:= InsSum + [formula to be totaled]
this formula should be placed in the same section as the field to be summarized.
-the second formula for reset should be written;
whileprintingrecords;
shared numbervar InsSum;
InsSum:=0
this formula should be placed in the section proceding the section containing the field to be summarized.
-the third display formula should be written;
whileprintingrecords;
shared numbervar InsSum;
InsSum
and this formula should be placed where you were wanting the summary to appear.
So in my crystal report there are three groups. Group footer #1 has a subreport in to pull the product line name in.
Within that group I need to total std labor cost, lowlevel laborcost and highlevel labor cost.
Group #2 is by bomitem, which is a part number
Group #3 is for linenumber which refers to a subreport that has no bearing on the totals
I am trying to achieve.
Using the first set of fields, PlineTotalSTDLabCost_Calc, PlineTotalSTDLabCost_Display and PlineTotalSTDLabCost_Reset,, where should
These fields be place to return the results I am looking for base on what I have explained.
Formula for PlineTotalSTDLabCost_Calc:
Whileprintingrecords;
Shared Numbervar PlineLaborStd;
PlineLaborStd:= PlineLaborStd + ({@Total_std_Lab_cost}
Formula for PlineTotalSTDLabCost_Display:
Whileprintingrecords;
Shared Numbervar PlineLaborStd;
PlineLaborStd
Formula for PlineTotalSTDLabcost_Reset:
Whileprintingrecords;
Shared Numbervar PlineLaborStd;
PlineLaborStd:=0
Base on what I have explained and the screenshots, where should these field be placed in order to get totals by product line (Group #1) and grand totals in the report footer?