ACC:"Continued" Header w/ Groups That Span Multiple Pages(95/97)ID: Q182823
|
Moderate: Requires basic macro, coding, and interoperability skills.
This article shows you how to create a label that will print at the top of
each report page when a data group spans multiple pages.
The events used in this technique capture the value of the group in the
page footer. If this value is the same as the page header value on the
next page, a label containing "Continued from previous page..." is printed
at the top of the page.
The following steps use the sample database Northwind.mdb to demonstrate
how to create a label that is printed at the top of each report page when a
data group spans multiple pages:
Public CurrentGroupVal as String
Function SetGlobalVar (InReport as Report)
CurrentGroupVal = InReport!SetGroupVal
End Function
Function SetContinuedLabel (InReport as Report)
If InReport.Page <> 1 then
InReport!ContinuedLabel.Visible = _
IIf(Trim(InReport!CheckGroupVal) = _
Trim(CurrentGroupVal), True, False)
End If
End Function
Name: CheckGroupVal
ControlSource: Country
Visible: No
=SetContinuedLabel(Report)
Name: SetGroupVal
ControlSource: Country
Visible: No
=SetGlobalVar(Report)
For more information about creating a "Continued..." Header for a group
that spans multiple pages in a Microsoft Access 2.0 report, please see the
following article in the Microsoft Knowledge Base:
Q88156 ACC:"Continued" Header w/Group Spanning Multiple Pages
(1.x/2.0)
For more information about keeping sections or groups of records together,
search the Help Index for "GrpKeepTogether property," "KeepTogether
property - Groups," and "KeepTogether property - Sections."
Additional query words: inf
Keywords : kbdta RptSort
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 27, 1999