yeah, I coded it as a VBA procedure and the event property is [Event Procedure].
Here is the code:
Private Sub searchTable_Click()
If CurrentProject.AllForms("Q_SearchResult").IsLoaded Then
Me.Requery
Else
DoCmd.OpenQuery "Q_Products", acViewNormal
End If
End Sub
I did Me.requery because formName.requery did not work.
Q_SearchResult is a form and Q_Products is the query