OnDisconnect Event

Microsoft Access Visual Basic

OnDisconnect Event

       

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

Private Sub Form_OnDisconnect()

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