Yes there is. Put the folowing commands under the button:
DoCmd.OpenQuery "Query01"
DoCmd.OpenQuery "Query02"
DoCmd.OpenQuery "Query03"
DoCmd.OpenQuery "Query04"
..
..
..
..
..
DoCmd.OpenQuery "Query99"
I'd be inclined to use the Execute method in VBA code: it avoids prompts "do
you really want to run this query?" and provides for specifying parameters.
See the VBA help for the Execute method of the Querydef object for sample
code, or post back.
I've occasionally created a table with fields for a query name, sequence
number, and sometimes other fields and used a VBA loop through a recordset to
run a set of queries in order.
--
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.