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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Omit page from a report

Status
Not open for further replies.

bill1856

Programmer
Sep 5, 2005
18
US
I have a report that is four pages long. One of the pages (page 3 of 4) is only for 'Additional Info'. 90% of the time there is no additional info. Is there any way to not print that page unless there is data in the 'additional info' text box on the page?
 
How are you forcing the page throw? (Section properties or pagebreak controls?)
 
You can set the pagebreak control Visible property to false and it will not operate.

In the section Format event procedure test for a value and then set the visible property accordingly.

if isnull(me.mycontrol) then
me.pagebreakx.visible = false
else
me.pagebreakx.visible = true
end if

You need the canshrink property set in the additional info control.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top