View Single Post
  #5  
Old July 23rd, 2007, 03:37 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default troubleshooting new page in access 2003

kalman wrote:

On Jul 22, 6:43 pm, Marshall Barton wrote:
kalman wrote:
I am printting a 4 group level where for every change in the 2 first
groupes they should be a new page. What happens is when the first
group is changing I had a page with only the title of the group and
remaining empty ???


Set the top level group header section's ForceNewPage
property to BeforeSection.

Use code in the top level group header section's Format
event to keep the second level header on the same page as
the top level group header section:
Me.Section(7).ForceNewPage = False

To get subsequent second level headers on a new page, use
the second level group footer section's Format event:
Me.Section(7).ForceNewPage = True


The problem was that in designing the page in landscape there was an
overflow (too many empty lines) causing group title being on new page
without details records.

Is there a function getting information if you are going to print a
page without group detail records ?



I don't understand what you are trying to describe. What
does "there was an overflow (too many empty lines)" mean?

Landscape/portrait should have nothing to do with whatever
problem you are having.

It is impossible to have a group header with no detail
records. You might have a detail record with Null values in
some/many fields, but there can not be a group without at
least one detail.

You can determine the number of details in a group by using
a text box with the expression =Count(*) in the group header
section.

--
Marsh
MVP [MS Access]