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

Re: Summarizing variables field with calculations

$
0
0

OK, I am getting closer. I not have my correct variables and they are resetting correctly. I just need to summarized three fields. Now these three fields are calculated with variables from the first sub report. I need to total by group footer #1 for Total STD lab cost, LL Lab cost and TL Lab cost.

The group #1 is by product line and needs to be reset based on the numbers being passed Group footer #2 (by item). I also need a grand total for the three in the report footer.  As you can see form the screen shot, I tried the three part variables, called PlinetotalSTDLabcost_Calc, _Display and _Reset, but it is not working as I hoped.

 

Labor07.png

Here are the formulas for the three variables fields:

"PLineTotalSTDLabCost_calc:

 

Whileprintingrecords;

Shared Numbervar PlineLaborStd;

PlineLaborStd:= PlineLaborStd + ({@Total_std_Lab_cost})

 

The display field:

 

Whileprintingrecords;

Shared Numbervar PlineLaborStd;

PlineLaborStd

 

 

Te reset field:

 

Whileprintingrecords;

Shared Numbervar PlineLaborStd;

PlineLaborStd:=0

 

Here is the report in design view:

 

 

 

Labor08.png

 

Any thoughts or help would be appreciated.

 

Edmund


Viewing all articles
Browse latest Browse all 8704