In your sub set your variable:
whileprintingrecords;
shared numbervar TotalFromSub:= sum(x)
in main report
whileprintingrecords;
numbervar GrandTotal:= GrandTotal + shared numbervar TotalFromSub
make sure this is in a section following where the sub is called
In the server settings there are time-out values - look at each one of them - I think the cache server is one, but there is moret than one and I don't remember the other one off the top of my head.
You're going to have to bring all the records back. Then in Crystal put your data in the details section in ascending order by the field you want the latest record for, then create a group for each set of records, put the fields in details in your group footer and suppress the details. You'll...
It was for 7 and 8 but I see the other issue. It's not your suppression though because I didn't supress anything and I get the same result. I thought it might be due to the object not actually being in the main report but if you put a sub itself there, it stays on drill-down - could you use...
I got the same result and found the following in the Crystal KB
The Shared Variables pass data correctly from the subreport to the main report. However, the Shared Variables pass data incorrectly from the main report to the subreport.
For example:
When creating shared variables using 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.