Exporting Multiple Queries to the same Excel File

P

Public

Hi,
I was trying to export queries to Excel and used "Output To" action to do
that. The problem is that I want to import the output of several queries to
the same Excel sheet. I used "Run Macro" command to execute another Macro
but it replaced the previous results.
What I want is to make a macro that puts the result of mutiple queries into
the same Excel sheet (each query result in a line in Excel sheet)

Any ideas?
 
S

Steve Schapel

Public,

Try to create a single query that returns all the data you want. It
could be that the correct use of Criteria will achieve it. It could be
that you need to use a Union Query. Or something else.

If you need more explicit help with this, please post back with details,
explaining the data you want to export and which table(s) it comes from.
The SQL view of the queries would also help us to understand what you
are trying to achieve. Thanks.
 
P

Public

Thanks for your response.
I have tried creating a union query but Access showed me this error:
The query is too complex

Any ideas?
 
S

Steve Schapel

Public,

Nope, no ideas apart from what I already said:
"Please post back with details, explaining the data you want to export
and which table(s) it comes from. The SQL view of the queries would
also help us to understand what you are trying to achieve."
 
R

Ron2006

You have to have each of the queries create a different TAB name in
the output spreadsheet.

perhaps transferspreadsheet Export etc.

Ron
 

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

Top