run a delete query from a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to be able to run a delete query from a button on a form? When
I try to do this using a wizard, it does not list the delete query in the
query list?

TIA
 
Is it possible to be able to run a delete query from a button on a form? When
I try to do this using a wizard, it does not list the delete query in the
query list?

TIA

The syntax to run any query is:

DoCmd.OpenQuery "QueryName"

If you use the wizard, enter any query name.
Then open the button's code window and change the name to that of the
actual delete query name.
 

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

Back
Top