ACC2: Group Header or Group Data Missing on Page 1 of a ReportID: Q130368
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you print a report, the report header and the page header are
printed on page 1, but not the group header or the group's detail
information.
The group header's ForceNewPage property is set to BeforeSection.
This article assumes that you are familiar with Access Basic and with
creating Microsoft Access applications using the programming tools provided
with Microsoft Access. For more information about Access Basic, please
refer to the "Building Applications" manual.
To work around this problem, create a page break before each group value on
the report.
To create the page break on your report, follow these steps:
Name: GroupHdrPageBreak
Top: 0
Option Explicit
Dim FirstOne As Integer
Function RHdrOnFormat()
FirstOne = -1
End Function
Function GrpHdrFormat (Rpt As Report)
If Rpt.page = 1 And FirstOne = -1 Then
Rpt!GroupHdrPageBreak.visible = False
Else
Rpt!GroupHdrPageBreak.visible = True
End If
FirstOne = 0
End Function
=RHdrOnFormat()
=GrpHdrFormat([Report])
Microsoft has confirmed this to be a problem in Microsoft Access version 2.0. This problem no longer occurs in Microsoft Access version 7.0.
For more information about forcing new pages in a report, search for "ForceNewPage," and then "ForceNewPage Property" using the Microsoft Access Help menu.
Keywords : kbusage RptLayou
Version : 2.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 3, 1999