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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top