VBA Code to view a query from a Command Button within a Form

paulS30berks

Registered User.
Local time
Today, 03:40
Joined
Jul 19, 2005
Messages
116
I have set up a command button within a form and wish to output results from a query for a specific company. The query has been set up.

Can anyone help?

Thanks
 
Code:
Private Sub YourButton_Click()
    DoCmd.OpenQuery "QueryName", acViewNormal, acEdit
End Sub

John D
 

Users who are viewing this thread

Back
Top Bottom