D
Dkline
I have been presented a problem by the SVP. He has 20 queries in a database.
He wants to have some code that will run each query and have it create a
table in another database. Any existing tables in the second database will
be replaced in entirety by the newly created table. I'm just going to blow
them away at the outset.
So the "source" is "DataQueries.mdb". The first query is named "qryDC". The
"target" database is "DataTables.mdb". The first query should produce a
table titled "tblDC".
I know the name of each query in the "source". I know the name of the table
the results of the query should create in the "target". Basic question is
how in VBA can I run the query and have it create a table in the "target"?
How can I do this?
He wants to have some code that will run each query and have it create a
table in another database. Any existing tables in the second database will
be replaced in entirety by the newly created table. I'm just going to blow
them away at the outset.
So the "source" is "DataQueries.mdb". The first query is named "qryDC". The
"target" database is "DataTables.mdb". The first query should produce a
table titled "tblDC".
I know the name of each query in the "source". I know the name of the table
the results of the query should create in the "target". Basic question is
how in VBA can I run the query and have it create a table in the "target"?
How can I do this?