ACC: Explanation of HasContinued and WillContinue PropertiesLast reviewed: June 23, 1997Article ID: Q141622 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. This article explains the HasContinued and WillContinue properties that are included in Microsoft Access 7.0 and 97, their usage, and their limitations.
MORE INFORMATIONHasContinued 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. You can either use the section name (as defined in the properties sheet) when referring to these properties:
Me.Detail.WillContinueOr you can reference the report's Section property:
Me.Section(0).WillContinueHasContinued 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:
REFERENCESFor more information about the WillContinue property, search the Help Index for "WillContinue," or ask the Microsoft Access 97 Office Assistant. For more information about the HasContinued property, search the Help Index for "HasContinued," or ask the Microsoft Access 97 Office Assistant. |
Keywords : kbusage RptLayou
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |