Running Multiple Queries

  • Thread starter Thread starter maureen227
  • Start date Start date
M

maureen227

I have 3 queries that need to run consecutively. What would be the
best process? A button click or macro?

Thanks ahead
Maureen
 
I have 3 queries that need to run consecutively. What would be the
best process? A button click or macro?


If these are action queries, use VBA code behind a button or
whatever.

Dim db As DAO.Database
Set db = CurrentDb()

db.Execute "query1"
db.Execute "query2"
db.Execute "query3"

Set db = Nothing
 
Marshall said:
If these are action queries, use VBA code behind a button or
whatever.

Dim db As DAO.Database
Set db = CurrentDb()

db.Execute "query1"
db.Execute "query2"
db.Execute "query3"

Set db = Nothing

Marsh
Thank you so much this worked like magic.

Tera-bytes of Gratitude!
Maureen
 

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