Exporting a linked table

G

Guest

Hello,

In a split database set-up, is it possible to export a linked table, using
the TransferDatabase Method, to a third database while ensuring that the
actual table has been transferred and not the link.

DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\Archive.mdb",
acTable, "tbl_test", "tbl_test"

Thank you
 
T

Tim Ferguson

In a split database set-up, is it possible to export a linked table,
using the TransferDatabase Method, to a third database while ensuring
that the actual table has been transferred and not the link.

DoCmd.TransferDatabase acExport, "Microsoft Access", "C:\Archive.mdb",
acTable, "tbl_test", "tbl_test"

Dunno about using TransferDatabase, but the normal SQL maketable command
will definitely work:

strSQL = "SELECT * " & _
"INTO Test IN c:\archive.mdb " & _
"FROM Test"
db.Execute strSQL, dbFailOnError

HTH


Tim F
 
G

Guest

Thank you Tim. That solution will work for me.

Tim Ferguson said:
Dunno about using TransferDatabase, but the normal SQL maketable command
will definitely work:

strSQL = "SELECT * " & _
"INTO Test IN c:\archive.mdb " & _
"FROM Test"
db.Execute strSQL, dbFailOnError

HTH


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