The subreport needs to do 2 things: 1. to return a shared variable to main report for deciding if the group need to be suppressed; 2. if the group will not be suppressed, to show some records in the group footer.
I found I have to run the subreport twice - one in group header to decide if suppress the group and one in group footer to show the records. Otherwise, the main report can't suppress correctly.
Any suggestions are appreciated.
Knzy
I found I have to run the subreport twice - one in group header to decide if suppress the group and one in group footer to show the records. Otherwise, the main report can't suppress correctly.
Any suggestions are appreciated.
Knzy