Run a Query to Run a set of queries

A

Ananth

I have created a set of 10 queriies. they have run in the order (Qry1,
Qry,2... Qry10) to produce a final Database extract.

Is it possible to run a single VBA routine or a query to automate running
the queries in the same order.

I am a Managment Accountant & my VBA skills are rudimentary.

ANy help appreciated
 
A

Allen Browne

See:
Action queries: suppressing dialogs, while knowing results
at:
http://allenbrowne.com/ser-60.html

Essentially, the code will look like this:
dim db As DAO.Database
Set db = CurrentDb()
db.Execute qry1, dbFailOnError
db.Execute qry2, dbFailOnError
db.Execute qry3, dbFailOnError
...
Set db = Nothing
 
R

rhall

I have created a set of 10 queriies. they have run in the order (Qry1,
Qry,2... Qry10) to produce a final Database extract.

Is it possible to run a single VBA routine or a query to automate running
the queries in the same order.

I am a Managment Accountant & my VBA skills are rudimentary.

ANy help appreciated

I would think you could load them all into a macro- in whatever order
you choose. Running the macro will give you the desired result every
time.
 

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

Similar Threads

Union Query if Yex/No 13
run a series of queries 1
Combine queries 2
Renaming Queries 13
query very slow 5
Nested or Sub query? 2
Append many queries to tables 1
run multiple queries in VBA 5

Top