This documentation is archived and is not being maintained.

Form.SelectionChange Event (Access)

Occurs whenever the user makes a new selection in a PivotChart view or PivotTable view.

expression .SelectionChange

expression A variable that represents a Form object.

Return Value

nothing

The user cannot cancel this event.

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

Private Sub Form_SelectionChange() 
 MsgBox "The selection has changed!" 
End Sub
Show: