Karen said:
there are enough records in the detail section so that my report footer is
being pushed to its own page (it looks so lonely out there all by itself).
Is there a way to distribute the details so that this doesn't happen?
That can only be done if both the detail and report footer
sections have CanGrow set to No.
In this case, you can use a page break control (named
pgBreak) at the top of the detail section and, when its the
last detail, make it visible if both sections will not fit
on the page.
Your next question will probably be: how do you know when
its the last detail? This is done by adding a hidden text
box (named txtLineNum) to the detail section. Set its
control source expression to =1 and its RunningSum
to OverAll.
Then add another hidden text box (named txtTotalLines) to
the report header section and set its control source to
=Count(*)
Then the detail section event can use code like:
If txtLineNum = txtTotalLines _
And Me.Top + Me.Section(0).Height + Me.Section(2).Height
{paper height} - {top margin} - {bottom margin} -
Me.Section(4).Height Then
Me.pgBreak.Visible = True
Else
Me.pgBreak.Visible = False
End If
If you do not have a page footer section, remove the
Section(4) part of the expression.