How to add another query

dcollard23

Registered User.
Local time
Today, 13:37
Joined
Jun 15, 2009
Messages
87
Hi,

How do I add another query to the code? I have a search button and I want to be able to search 3 queries at one time.

Private Sub CmdSearch_Click()
DoCmd.OpenQuery "QryResults", acViewNormal, acReadOnly
End Sub

Thank you
Elaine
 
simple;

Private Sub CmdSearch_Click()
DoCmd.OpenQuery "query1", acViewNormal, acReadOnly
DoCmd.OpenQuery "query2", acViewNormal, acReadOnly
DoCmd.OpenQuery "query3", acViewNormal, acReadOnly
End Sub
 

Users who are viewing this thread

Back
Top Bottom