ACC2000: In a Report, Close Event Occurs Before Deactivate EventID: Q198460
|
Moderate: Requires basic macro, coding, and interoperability skills.
The sequence of the Deactivate and Close events for a Microsoft Access form
are the reverse of the Close and Deactivate events in a Microsoft Access
report.
When you close a form, the following sequence of events occurs for the form:
Unload => Deactivate => CloseWhen you close a report from Print Preview view or when the report closes automatically after the Print event has occurred, the following sequence of events occurs for the report:
Close => DeactivateNote that a form's Close and Deactivate events are the reverse of the Deactivate and Close events of a report.
Private Sub Form_Deactivate()
MsgBox "Deactivate event"
End Sub
Private Sub Form_Close()
MsgBox "Close event"
End Sub
Private Sub Report_Deactivate()
MsgBox "Deactivate event"
End Sub
Private Sub Report_Close()
MsgBox "Close event"
End Sub
For more information about the order of events, click Microsoft Access Help on the Help menu, type find out when events occur in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Additional query words: inf
Keywords : kbdta FmsEvnt RptEvent
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: July 15, 1999