ACC: How to Repeat Subreport Header at Top of Page (120907)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q120907
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
This article describes how to repeat a subreport's header when the
subreport spans multiple pages.
NOTE: This method works best for one subreport. Attempting to repeat
the subreport header for multiple subreports requires a set of controls
in the page header and a flag for each subreport. Then the code must
check each flag and hide or show the appropriate sets of controls.
This code is not easy to maintain.
NOTE: This article explains a technique demonstrated in the sample
files, RptSampl.exe (for Microsoft Access for Windows 95 version 7.0)
and RptSmp97.exe (for Microsoft Access 97). For information about how
to obtain these sample files, please see the following articles in the
Microsoft Knowledge Base:
145777 ACC95: Microsoft Access Sample Reports Available in Download Center
175072 ACC97: Microsoft Access 97 Sample Reports Available in Download Center
REFERENCES
For more information about events during printing, type "Print Events" in
the Office Assistant, click Search, and then click to view "Print Event."
For more information about report OnFormat and OnPrint properties, search
on "OnFormat," and "OnPrint," using the Microsoft Access 97 Help Index.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbhowto kbusage KB120907 |
---|
|