unclejimbob
Technical User
Hi all, I've had a look around the posts but can't find anyone with a similar issue.
Here is the problem :- I have a main report that calls a sub report and the sub report returns the number of enquiries for a particular product. Don't ask me why I am using a sub report its not really relevant to explain here
The sub report formula looks like this:
WhilePrintingRecords;
Shared NumberVar myEnquiries;
myEnquiries := myEnquiries + Count ({Command.EVENTUID})
I have created a formula in the main report thus:
WhilePrintingRecords;
Shared NumberVar myEnquiries;
myEnquiries
which I use to count the number of enquiries and which displays the returned information in a group footer and I reset the enquiry count to zero using another formula held within a suppressed group header thus:
WhilePrintingRecords;
Shared NumberVar myEnquiries := 0;
So far so good.
The problem occurs because I want to use this information in other group footers in the report, for example I want the number of enquiries by the 'category' of the product and then a total of all enquiries for the entire report.
I have experimented with using a number of other sub reports but it seems overkill to create one sub report for each grouping - so my question is 'Is there a way I can use the same shared variable passed back from the sub report within multiple groups ?'
thanks all
Here is the problem :- I have a main report that calls a sub report and the sub report returns the number of enquiries for a particular product. Don't ask me why I am using a sub report its not really relevant to explain here
The sub report formula looks like this:
WhilePrintingRecords;
Shared NumberVar myEnquiries;
myEnquiries := myEnquiries + Count ({Command.EVENTUID})
I have created a formula in the main report thus:
WhilePrintingRecords;
Shared NumberVar myEnquiries;
myEnquiries
which I use to count the number of enquiries and which displays the returned information in a group footer and I reset the enquiry count to zero using another formula held within a suppressed group header thus:
WhilePrintingRecords;
Shared NumberVar myEnquiries := 0;
So far so good.
The problem occurs because I want to use this information in other group footers in the report, for example I want the number of enquiries by the 'category' of the product and then a total of all enquiries for the entire report.
I have experimented with using a number of other sub reports but it seems overkill to create one sub report for each grouping - so my question is 'Is there a way I can use the same shared variable passed back from the sub report within multiple groups ?'
thanks all