Hello,
I'm using v8.5, I've have a subreport containing a SUM. I I've created a shared number Var forumla to share this number with the main report.
{@ShareIP-Var}
shared numbervar IPS := {@CountElementsSUM}
The answer in this subreport: 943 this is correct.
In the MAIN report I use this:
{@ShareIP}
shared numbervar IPS;
The answer in the main report: 943 this is correct.
Now the problem starts when I attempt to use the result of {@ShareIP} (943) in a other formulas of the main report.
After I place {@ShareIP} into a formula, the value turns to ZERO.
For example:
The calulation I need to use this number (943) is this:
{@Form1}
((({@EndDate} - {@StartDate}) * {@SharedIP) * 1440)
After using {@SharedIP}in {@Form1}
I now get division by zero erros in other formulas that use {@Form1},and {@ShareIP} shows as a 0 on the main report.
Why cant I use this shared numbervar taken from the subreport in calulations on the main report?
Any Ideas?
Thanks,
Andy
I'm using v8.5, I've have a subreport containing a SUM. I I've created a shared number Var forumla to share this number with the main report.
{@ShareIP-Var}
shared numbervar IPS := {@CountElementsSUM}
The answer in this subreport: 943 this is correct.
In the MAIN report I use this:
{@ShareIP}
shared numbervar IPS;
The answer in the main report: 943 this is correct.
Now the problem starts when I attempt to use the result of {@ShareIP} (943) in a other formulas of the main report.
After I place {@ShareIP} into a formula, the value turns to ZERO.
For example:
The calulation I need to use this number (943) is this:
{@Form1}
((({@EndDate} - {@StartDate}) * {@SharedIP) * 1440)
After using {@SharedIP}in {@Form1}
I now get division by zero erros in other formulas that use {@Form1},and {@ShareIP} shows as a 0 on the main report.
Why cant I use this shared numbervar taken from the subreport in calulations on the main report?
Any Ideas?
Thanks,
Andy