I tried creating the subreport this morning. It worked OK on some pages, but in some other cases I got a group of detail entries, and then a duplicate group of detail entries. Very puzzling.
I also tried to programmatically determine the height of the Detail band using Visual Basic settings. My code worked, but the spacing was repeated for each record. I have worked out how high the detail band should be. If I could get the number of records the particular group has, I could use that to change the height of the band (and thus the spacing of records within the band) so everything stays in the one area without spilling onto another page. But how do I get the count for records in a group and convey it to any VBA I code into the report? Anybody have any ideas?