Special Report Properties
Several report properties are available only at runtime. They let you refine your report's processing significantly. These properties are covered in the sections that follow. The later section "Practical Applications of Report Events and Properties" provides examples of these properties.
MoveLayout
The MoveLayout property indicates to Access whether it should move to the next printing location on the page. By setting the property to False, the printing position is not advanced.
NextRecord
The NextRecord property specifies whether a section should advance to the next record. By setting this property to False, you suppress advancing to the next record.
PrintSection
The PrintSection property indicates whether the section is printed. By setting this property to False, you can suppress printing the section.
Interaction of MoveLayout, NextRecord, and PrintSection
By using the MoveLayout, NextRecord, and PrintSection properties in combination, you can determine exactly where, how, and whether data is printed. Table 10.1 illustrates this point.
FormatCount
The FormatCount property evaluates the number of times the Format event has occurred for the report's current section. The Format event happens more than once whenever the Retreat event occurs. By checking the FormatCount property, you can make sure that complex code placed in the Format event is executed only once.
PrintCount
The PrintCount property identifies the number of times the Print event has occurred for the report's current section. The Print event happens more than once whenever the Retreat event occurs. By checking the value of the PrintCount property, you can make sure that logic in the Print event is executed only once.
HasContinued
The HasContinued property determines whether part of the current section is printed on a previous page. You can use this property to hide or show certain report controls (for example, Continued From…), depending on whether the section is continued.
WillContinue
The WillContinue property determines whether the current section continues on another page. You can use this property as you do the HasContinued property to hide or display certain controls when a section continues on another page.