Paint Event
The Paint event is new to Access 2007 and is fired whenever a section needs to be drawn on the screen. Access paints various items in a given section at different times. For example, the background and foreground colors and items are painted separately. Calculated controls are also painted separately, and each section paints its own calculated controls. As you might imagine, the Paint event fires multiple times for a given section.
The Paint event applies to the screen, not the printer. Paint events fire when paging through a report on the screen, not Print Preview.
Because the Format event does not fire in Report view, the Paint event can be used for conditional formatting of controls in that view.
Post a comment