Sets or returns the value of the On Format box in the Properties window of a report section. Read/write String.
expression.OnFormat
expression Required. An expression that returns one of the objects in the Applies To list.
The Format event occurs when Microsoft Access determines which data belongs in a report section, but before Access formats the section for previewing or printing.
The OnFormat value will be one of the following, depending on the selection chosen in the Choose Builder window (accessed by clicking the Build button next to the On Format box in the report section's Properties window):
If the On Format box is blank, the property value is an empty string.
The following example prints the value of the OnFormat property in the Immediate window for the "GroupHeader0" section in the "Purchase Order" report.
Debug.Print Reports("Purchase Order").Section("GroupHeader0").OnFormat