Table of contents
TOC
Collapse the table of content
Expand the table of content

Form.BeforeQuery Event (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Occurs when the specified PivotTable view queries its data source.

Syntax

expression. BeforeQuery

expression A variable that represents a Form object.

Return Value

nothing

Remarks

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.

Example

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

See also

Concepts

Form Object

© 2017 Microsoft