Query Event From Microsoft Access Visual Basic previous page next page Private Sub Form_Query() ExampleThe 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