This is my first attempt at a variable.
In a subreport I have
//Formula Material Cost
Shared NumberVar MaterialCost;
MaterialCost:=Sum ({@Actual Material Cost})
This subreport is in GroupHeader 2C
In the main report I have
//Formual Unit Material Cost
Shared NumberVar MaterialCost;
MaterialCost/{WORK_ORDER.RECEIVED_QTY}
This is in GroupHeader 2A
The formula on the main report is calculating the cost from one line and the quantity from another. For example
P/N Qnty Cost Value Expected Value Returned
A 8 $299.52 $37.44 $0.00
B 2 $103.80 $51.90 $149.76 ($299.52/2)
C 19 $3128.70 $164.67 $5.46 ($103.80/19)
and so on...
Secondly, what is the difference between a Shared Variable and a Global Variable?
Thanks for your help!
Hillary
In a subreport I have
//Formula Material Cost
Shared NumberVar MaterialCost;
MaterialCost:=Sum ({@Actual Material Cost})
This subreport is in GroupHeader 2C
In the main report I have
//Formual Unit Material Cost
Shared NumberVar MaterialCost;
MaterialCost/{WORK_ORDER.RECEIVED_QTY}
This is in GroupHeader 2A
The formula on the main report is calculating the cost from one line and the quantity from another. For example
P/N Qnty Cost Value Expected Value Returned
A 8 $299.52 $37.44 $0.00
B 2 $103.80 $51.90 $149.76 ($299.52/2)
C 19 $3128.70 $164.67 $5.46 ($103.80/19)
and so on...
Secondly, what is the difference between a Shared Variable and a Global Variable?
Thanks for your help!
Hillary