Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2006

Tip: Looking for answers? Try searching our database.

Running Multiple Queries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
maureen227@cox.net - 27 Jul 2006 21:04 GMT
I have 3 queries that need to run consecutively.  What would be the
best process?  A button click or macro?

Thanks ahead
Maureen
Marshall Barton - 27 Jul 2006 23:46 GMT
>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

Signature

Marsh
MVP [MS Access]

maureen227@cox.net - 28 Jul 2006 08:55 GMT
> >I have 3 queries that need to run consecutively.  What would be the
> >best process?  A button click or macro?
[quoted text clipped - 14 lines]
> Marsh
> MVP [MS Access]

Marsh
Thank you so much this worked like magic.

Tera-bytes of Gratitude!
Maureen
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.