My report goes:
The problem is that if showsection is "1" the page headers are showing as designed but the details and the group footer are not showing. I simplified what the subreport is doing for testing and manually change the value to 0 or 1 depending on how I want the test to appear.
Here is my code in the subreport:
whileprintingrecords;
shared numbervar showsection;
showsection := 1
Here is the suppression formula I am using for the page header, group, and detail sections:
whileprintingrecords;
shared numbervar showsection;
showsection =0