Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close a query after run

Status
Not open for further replies.

Elamranii

MIS
Feb 1, 2005
57
US
Hi,
I have a Macro that run 8 Make Table Queries. Once the macro is done it leaves all 8 queries open. How do I make Macro close all queries when completed?
Thanks in advance
Ismail
 
A real make table query shouldn't stay open ...
 
So, why launching queries if you want to close them ?
 
what I am trying to do is export this queries to an excel sheet. Once the export is done they all stay open.
 
Have a look at the OutputTo and TransferSpreadsheet methods of the DoCmd object.
No need to open the query to export it.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I worked. Thanks for you help and your patience.
Ismail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top