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
 
Back
Top