Suppress subreport when detail is conditionally suppressed
Posted on 2012-09-17
In Crystal Reports for VS 2008, I have a subreport that prints detail records for a child table only when a field is within a range (date during the current year, for instance). I want to suppress the subreport if no records fit the range. I've checked Suppress Blank Subreport in the Format Editor, and if the child table has no records at all matching the parent record, the subreport doesn't appear. If there are records which are simply outside the range, though, the subreport appears with no records displayed.
It seems that "conditionally suppress all records" isn't the same thing as "blank report." Any ideas on how to accomplish this?