terri said:
You’re right that it’s another section causing the problem -- although I’m
not using either the Report or Page Header…
A while back you responded to a post of mine regarding the RepeatSection
property; it turned out that the property cannot be changed at runtime and
changing the visible property of a section at runtime causes the 2000RT to
hang. To work around this, I use three groups to build a custom page header.
If I take these groups out of play the data group header does indeed print
on the first page. Put them in and the data group starts on page two. (Keep
with first detail doesn’t have any effect.)
So the group footer is never smart enough to know it’s on the last page, and
the group header is only smart enough to know it’s on the first page if it’s
the first group… any other options or am I pretty much out of luck again?
I guess that rules out the use of ForceNewPage ;-)
You can revert back to the old reliable technique of putting
a page break control (named pgNewPage) at the top of the
group header and making it visible the second time the group
is displayed. Use a running sum text box (named txtRunGroup
and expression =1) in the group header to determine the
first time you are processing the group:
Me.pgNewPage.Visible = txtRunGroupCount > 1