Report footer printing

  • Thread starter Thread starter Joe D
  • Start date Start date
J

Joe D

I'm using Access97. How do I get the Report footer to print under the
data on the last page of the report. It now prints on a separate page
after the last page with data. Thanks
 
I'm using Access97. How do I get the Report footer to print under the
data on the last page of the report. It now prints on a separate page
after the last page with data. Thanks

The Report footer will always print just under the last row of Detail
data. If there is no room to fit it all under that last row of data,
it will move to the next page, or it will always move to a new page if
the section's ForceNewPage property is not set to None.

You can't change that, but you can print the data that would have
appeared in the Report Header in the Page Footer of the final report
page.

Make your report as you normally would with the Page Footer and Report
Footer.

Make sure there is a control set to = [Page] & " of " & [Pages] in the
Page Footer.

Then for each control you wish to display on the final page footer,
place an unbound control where it should display (in the Page Footer).
Set each of these controls Visible properties to No.
(Do not disturb the controls you want to normally display at the
bottom of each page.)

Next code the Report' Page Footer Format event:
If [Page] = [Pages] Then
[PageFooterControlName1] = [ReportFooterControlName1]
[PageFooterControlName1].Visible = True
' Do the same for each other ReportFooter control you wish to show
in the Page Footer.
End If

If you have other controls in the page footer that you do not wish to
display on the final page, set them to Not Visible in the Page Footer
event.

You must leave enough Page Footer Height to print these controls.
I see no reason you can't stack these controls on top of your regular
page footer controls and turn Visible properties on and off as
required.

Next code the Report Footer's Format event:
Cancel = True


Then code the Report Header Format event:

[PageFooterControlName1].Visible = False
' Do the same for each other ReportFooter control you wish to show
in the Page Footer.


The Report Footer information should display at the bottom of the
report where the Page footer normally does.
 
Back
Top