Hello
I have created 2 formulas (below). The first formula is meant to pass a variable number to formula 2 (section in red ***)
The problem is that I do not know how to call the value (number) form formula 1 into formula 2.
I need to keep these separate because once the value is passed I will need to insert a summary on formula 2.
I am desperate for any assistance…
Regards,
Despina
1.
whileprintingrecords;
global numbervar subtractWRKPEN;
subtractWRKPEN := SUM ({@OA_Wrk}, ({Command.EMPLOYEE_HISTNAME}))-SUM ({@OA_PS},
({Command.EMPLOYEE_HISTNAME}))
2.
whilereadingrecords;
NumberVar RTotal;
If {Command.SUM(WRKD_MINUTES)}= 1 and {Command.UNIT} > '0:00' Then
RTotal :=
ToNumber({Command.UNIT})
else if {@Grouping_5}='Casual Loading 22.5%' Then
RTotal := ****
ELSE
RTotal :=
{Command.SUM(WRKD_MINUTES)}