Copying Tables to Another Access Database

M

mike

Hi:

Anyone know how to write in code a method to copy a table
from an open Access Database to another closed Database?

Mike
 
C

Cheryl Fischer

The TransferDatabase method allows you to copy objects from the open
database to another database. Check it out in VBA Help.
 
T

Tim Ferguson

Anyone know how to write in code a method to copy a table
from an open Access Database to another closed Database?


append query:

INSERT INTO OtherTable IN f:\other\database.mdb
(FieldOne, FieldTwo)
SELECT Something, SomethingElse
FROM MyTable


or else maketable query:

SELECT Something, SomethingElse
INTO OtherTable IN f:\other\database.mdb
FROM MyTable

You can set up either of these in the query design grid.

Hope that helps


Tim F
 

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