Form.OnDisconnect event (Access)
Occurs when the specified PivotTable view disconnects from a data source.
Syntax
expression.OnDisconnect
expression A variable that represents a Form object.
Return value
Nothing
Example
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.