By using this website, you agree to our Terms of Use (click here)
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.
I've tried all the tips and tricks I could find on this forum with no success.
I was thinking maybe you can reset the global variable. Before you go in.
I thought I had read that a global variable can be updated.
Maybe before you call it you set it to a value externally in your main program.
Then check for that value before you use it.
I have tried doing this within, without success.
Sharing an idea.
Matt
Matt,
I found another way to get this figure without needing to subtotal in a subreport so this is a moot question for me now.
I sincerely appreciate you taking the time to respond!