ðH geocities.com /Heartland/Pond/4805/Report1.htm geocities.com/Heartland/Pond/4805/Report1.htm .delayed x ÕPÔJ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ à–ð ÎO OK text/html €çh ÎO ÿÿÿÿ b‰.H Sun, 20 Jan 2002 13:04:19 GMT a Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98) en, * ÔPÔJ ÎO
---Posted
by Vinod Kumar--- 27/3/2001
ACC:
"Continued" Header with Groups That Span Multiple Pages (95/97)
The information in
this article applies to:
This
article pointer was forwarded to you from the Microsoft Online Support site. http://support.microsoft.com/support/kb/articles/Q182/8/23.ASP
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:
Open the sample database Northwind.mdb and create a new module.
Enter the following Public declaration and functions in the module:
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
13. Name: CheckGroupVal
14. ControlSource: Country
Visible: No
=SetContinuedLabel(Report)
17. Name: SetGroupVal
18. ControlSource: Country
Visible: No
=SetGlobalVar(Report)
Note
that these steps are for illustrative purposes only. Your report may require
adjustments other than those mentioned. You may want to prevent a section from
being split across pages by setting its KeepTogether property to Yes. In the
example, you may also want to set the ForceNewPage property of the Country
header section to Before Section to help control the page layout.
You can also use the GrpKeepTogether property to keep groups of records
together or to keep the group header with the first record in the group. You
may want to experiment with this property to see how it affects your report's
layout.