Expand Minimize
This topic has not yet been rated - Rate this topic

Form.BeforeQuery Event (Access)

Published: July 16, 2012

Occurs when the specified PivotTable view queries its data source.

expression .BeforeQuery

expression A variable that represents a Form object.

Return Value

nothing

This event occurs quite frequently. Some examples of actions that trigger this event include adding fields to the PivotTable view, moving fields, sorting, or filtering data.

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

Private Sub Form_BeforeQuery() 
 MsgBox "The PivotTable view is about to query its data source." 
End Sub
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.