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
 
G

Guest

Add a page break control and some code like:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top