Associate a form button to a query

A

Anita

I have an existing form associated to a table. In the form I would like to
associate a button to a query instead of the whole table. Can this be done?
Thanks, Anita
 
P

PieterLinden via AccessMonster.com

Anita said:
I have an existing form associated to a table. In the form I would like to
associate a button to a query instead of the whole table. Can this be done?
Thanks, Anita

You want the query to open when you click the button? Then use this in the
button's click event.
DoCmd.OpenQuery "queryname"
 
Top