Form.Query event (Access)

Occurs whenever the specified PivotTable view query becomes necessary. The query may not occur immediately; it may be delayed until the new data is displayed.

Syntax

expression.Query

expression A variable that represents a Form object.

Example

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

Private Sub Form_Query() 
 MsgBox "A query has become necessary." 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.