Hello,
I am passing a variable from a subreport back to the main report.
This is working with one problem.
If the subreport has no records to report, the variable being passed back to the main report is wrong.
The variable should always report the value from the subreport for the current record.
The subreport itself prints correctly, but the variable appears to be from the previous record’s subreport value.
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/ca41c6db-e29b-475b-ab3f-441a113dd96e.png)