Form.OnDisconnect Event (Access)
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Form.OnDisconnect Event (Access)

Occurs when the specified PivotTable view disconnects from a data source.

expression .OnDisconnect

expression A variable that represents a Form object.

Return Value


The following example demonstrates the syntax for a subroutine that traps the OnDisconnect event.

Private Sub Form_OnDisconnect() 
 MsgBox "The PivotTable View has " _ 
 & "disconnected from its data source!" 
End Sub
© 2015 Microsoft