The information in this article applies to:
SUMMARY
Moderate: Requires basic macro, coding, and interoperability skills.
MORE INFORMATION
HasContinued and WillContinue are report section properties that you can
inspect to determine if part of a section has printed on the previous page
or if part of a section will be printed on the next page.
Or you can reference the report's Section property:
HasContinued is set when the Format event for the section occurs and evaluates to True if a portion of the current section was printed on the previous page. Because the Format event occurs prior to the Print event, HasContinued is only set to True if the FormatCount > 1 (the portion of the section on the next page is being formatted). Because of this, you can't determine if the detail section "has continued" by checking the HasContinued property in page header or page footer events. HasContinued is only useful when inspecting the property from within the section's own event procedures. WillContinue is set when the Print event for the section occurs and evaluates to True if a portion of the current section will be printed on the next page. It remains True until the same section's next Print event occurs (PrintCount > 1). Therefore, you can check the detail section's WillContinue property in page header or page footer events. Following are steps to toggle the Visible property of a "Continued from previous page" label in the page header and a "Continued on next page" label in the page footer using the WillContinue property:
REFERENCES
For more information about the WillContinue property, search the Help Index
for "WillContinue," or ask the Microsoft Access 97 Office Assistant.
Keywords : kbusage RptLayou |
Last Reviewed: April 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |