Share via


OnConnect Event [Access 2003 VBA Language Reference]

Occurs when the specified PivotTable view connects to a data source.

Private Sub Form_OnConnect()

Example

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

Private Sub Form_OnConnect()
    MsgBox "The PivotTable View has " _
        & "connected to its data source!"
End Sub

Applies to | Form Object