I've had a similar problem before, though in my case the variables were all within one Main report. Below is the logic I used to solve it. Hopefully it'll work with the variable coming from the subreport...
In the group header, create the 2nd variable and initialize it to 0:
Formula...
Depending on how the subreport is linked to the main report, I would guess that the subreport is not even running when there is no data in the main report (no 10-digit accounts).
You might try pulling the 10-digit account data in a separate subreport, then having a main report to select...
@initialization in Group Header (only one group is used)
details suppressed
Subrpt 1 in Group Footer #1 a
Subrpt 2 in Group Footer #1 b
Subtotals from Subrpt 1&2 vars in Group Footer #1 c
Subrpt 3 in Group Footer #1 d
Subrpt 4 in Group Footer #1 e
Subtotals (from subrpt 3&4 vars) in Group...
I have a report in Crystal 8.0 with 4 subreports (each in its own group footer). I bring totals from these subreports into a 5th group footer via shared variables. The variables are initialized in the group header.
Here's the problem - variables from 3 of the 4 subreports bring back the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.