Version 9: Main report holds details of building contracts, subreport calculates value of costs.
I am using variables to bring through running totals from the subreport to my main report. I have declared the variable in the main report:
Shared NumberVar MatSubVariable;
then am using it in GF#1 of the main report:
WhilePrintingRecords:
Shared NumberVar MatSubVariable;
MatSubVariable
It is bringing through the correct values EXCEPT - where there is a contract with no costs, it repeats the costs from the last contract that did, until it meets a contract which does have costs, when the value changes correctly.
I've tried declaring the variable in various different areas of the main report with no change. This is something to do with telling it to reset on change of group, I think, but I can't remember how to do it ... Doh. Please can someone help?
I am using variables to bring through running totals from the subreport to my main report. I have declared the variable in the main report:
Shared NumberVar MatSubVariable;
then am using it in GF#1 of the main report:
WhilePrintingRecords:
Shared NumberVar MatSubVariable;
MatSubVariable
It is bringing through the correct values EXCEPT - where there is a contract with no costs, it repeats the costs from the last contract that did, until it meets a contract which does have costs, when the value changes correctly.
I've tried declaring the variable in various different areas of the main report with no change. This is something to do with telling it to reset on change of group, I think, but I can't remember how to do it ... Doh. Please can someone help?