I have an application where I have to run different queries and output to Excel, the problem is (I think ...) that before the first query is completed, the second query is started. How can I make sure that the second query wait to execute before the first one is ended.
This is an example of my application:
Docmd.OutputTo acOutputQuery, "Qy_1", acFormatXLS, "C:\A.xls"
Docmd.OutputTo acOutputQuery, "Qy_2", acFormatXLS, "C:\B.xls"
Is there a way to put a "delay" or "wait" status in between?
Thanks, John.

This is an example of my application:
Docmd.OutputTo acOutputQuery, "Qy_1", acFormatXLS, "C:\A.xls"
Docmd.OutputTo acOutputQuery, "Qy_2", acFormatXLS, "C:\B.xls"
Is there a way to put a "delay" or "wait" status in between?
Thanks, John.