swhiteside
Technical User
I have a report that has several sub-reports and shared numbervars. I am trying to reset the variable to zero so I can run a range of reports. The report works when you run one at a time, but not when you run it for a range of jobs.
On the main report I have 3 formulas all located in GF1a:
WhilePrintingRecords;
if shared numbervar H = 0 then 0 else {@Cost_1_Gross_Profit}/ shared numbervar H;
WhilePrintingRecords;
if shared numbervar H = 0 then 0 else {@Estimate_Gross_Profit}/ shared numbervar H;
WhilePrintingRecords;
if Shared numbervar H = 0 then 0 else (Shared numbervar G / shared numbervar H;
In the sub-reports I have the following formulas in the RFb:
whilePrintingRecords;
shared numbervar H:= sum ({JC_TRANSACTION_HISTORY.Total_Hours}); ""
WhilePrintingrecords;
Shared numberVar z := {@GM Based on Labor}
WhilePrintingRecords;
shared numbervar G:={@GROSS MARGIN}
I have tried the following formula in the GF1b for all shared numbervar with no luck...I am not sure what I am doing wrong.
WhilePrintingRecords;
Shared numbervar H:=0;
On the main report I have 3 formulas all located in GF1a:
WhilePrintingRecords;
if shared numbervar H = 0 then 0 else {@Cost_1_Gross_Profit}/ shared numbervar H;
WhilePrintingRecords;
if shared numbervar H = 0 then 0 else {@Estimate_Gross_Profit}/ shared numbervar H;
WhilePrintingRecords;
if Shared numbervar H = 0 then 0 else (Shared numbervar G / shared numbervar H;
In the sub-reports I have the following formulas in the RFb:
whilePrintingRecords;
shared numbervar H:= sum ({JC_TRANSACTION_HISTORY.Total_Hours}); ""
WhilePrintingrecords;
Shared numberVar z := {@GM Based on Labor}
WhilePrintingRecords;
shared numbervar G:={@GROSS MARGIN}
I have tried the following formula in the GF1b for all shared numbervar with no luck...I am not sure what I am doing wrong.
WhilePrintingRecords;
Shared numbervar H:=0;