Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ForceNewPage in a subreport

Status
Not open for further replies.

Bresart

Programmer
Feb 14, 2007
314
ES
Hi, i have a report with a subreport that has a group which onFormat event forces new page in vb if this group has data. But in the main report this new page isn't counted and appears one page less than the total they are. It works if i stablish the property Force New Page to Before the section in the design view of the report, but that has the problem that i would need to set this property to none if the precedent group has no data, so it would have to be made with code.

Any way of going around it? Can this property set from another event or procedure than onFormat or onPrint events?

Thanks in advance for any help given.
 
But in the main report this new page isn't counted and appears one page less than the total they are."

I refers to 'Page N of M' in the page header of the main report.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top