What is the proper syntax for forcing a new page with VBA?
If the list of items in the detail section of the report exceeds a certain number, I want to force a new page. How is this accomplished? Any help would be appreciated.
In the report's design mode, right click on the heading seperator and go to Properties. There's a "Force New Page" option in the Format tab. Can do it before and / or after each section.
Not sure how to do it 'programmatically'. Sorry if this isn't what you were asking.
No, I am looking for a way to do it in VBA. I have a report with 3 sections. Because these sections are limited in length, I want to tell the report to start a new page and keep the same page format, if the number of items in the detail section exceeds a certain number.
I have tried:
Me.Detail.ForceNewPage = True
but I get an error message.
All suggestions are appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.