Page break before subreport if subreport has data

K

Kathy Webster

How can I create a page break before the subreport if and only if the
subreport has data?
Some records will have no data in the subreport, and I don't want an
unnecessary page break in those instances.
Thank you,
Kathy
 
D

Duane Hookom

Add a page break control and some code like:

Me.PgBrkName.Visible = Me.subrptName.Report.HasData
 
Top