Importing and copying tables?

J

Jo Siffert

Hi all,

is there any programmatic way to
- import (instead of link) a table from an external MDB file including
all schema definitions?
- copy a TableDef?

Thanks a lot for your help,
Jo
 
G

Guest

hi,
i do this all the time with a macro that uses the
transferdatabase method.
the vb line would look like this:

DoCmd.TransferDatabase acImport, "Microsoft Access"," & _
""z:\your\file\path\xxx.mdb", acTable, "sourcetable"," & _
""destinationtable", False

note:false to import table stucture and date
true to import table sturcture only.
 

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