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

Running Totals

$
0
0

Hello,

 

I have a report with checking for a field to be equal to something and if true then add it to the running totals.  So when I put in the this formula field in it comes up as false, and when creating a new formula field to print off the total here it shows me zero.

 

Here is my formula:

 

WhileprintingRecords;

Numbervar WelderTotal;

Numbervar PressTotal;

 

if left({VENCREW.WorkStationDesc},4) = "Weld" then

WelderTotal = WelderTotal +{VENCREW.Quantity}

 

Else if left({VENCREW.WorkStationDesc},4) = "Pres" then

PressTotal = PressTotal + {VENCREW.Quantity};

 

On the other one to print off my total:

 

Whileprintingrecords;

Numbervar PressTotal;

PressTotal;

 

Is there something I missing here?

 

Thanks,
Gerald


Viewing all articles
Browse latest Browse all 2756

Trending Articles



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