Automate query export?

E

ExcessAccess

The way I've been doing it, is that I designed a query, made it a make-table
query, and then I manually export the table as a tab-delimited .txt file.
BUT, I've come to realize that at this point, making the table is an
unecessary step (which takes up space), when I could just export the query.

Okay, I know there are disadvantages and negative connotations regarding
using Access macros. But forget about them, at least for this thread. Rag on
me later. lol, or not, whatever.

My antiquated upload process includes running this make-table query as the
last step in a macro [OpenQuery]. I don't want to make a table anymore. I
want to export directly from the query.

How can I amend my process? Is it possible to automate an export? VBA (which
I honestly don't know)?

Jarrod
 
E

ExcessAccess

I query a bunch of tables for data, to make a .txt file (products file) for
an online store (web).
 
J

John Nurick

Hi Jarrod,

Make a copy of the make-table query and convert it into a Select query
that returns the data that would have been put into the new table. Then
have your macro export the Select query instead of the table.



The way I've been doing it, is that I designed a query, made it a make-table
query, and then I manually export the table as a tab-delimited .txt file.
BUT, I've come to realize that at this point, making the table is an
unecessary step (which takes up space), when I could just export the query.

Okay, I know there are disadvantages and negative connotations regarding
using Access macros. But forget about them, at least for this thread. Rag on
me later. lol, or not, whatever.

My antiquated upload process includes running this make-table query as the
last step in a macro [OpenQuery]. I don't want to make a table anymore. I
want to export directly from the query.

How can I amend my process? Is it possible to automate an export? VBA (which
I honestly don't know)?

Jarrod
 

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