Suppress page break if subreport has no data

T

TES

I have a report with 9 subreports and a page break control after each
subreport. When a subreport does not contain any data, I get a blank page. Is
there a way to suppress the page break control when a subreport has no data?
 
J

John Spencer

In the format event of the main report section containing the sub report.

Me.SomePageBreakControl = Not(Me.SomeSubReport.HasData)
 
Top