vb link table

  • Thread starter Thread starter Jacco
  • Start date Start date
J

Jacco

Hi everyone,

I want to link a single table from a another db into the current one with
the use of vb. After that I run queries on it to copy data, and the I want
to remove the link. Is this possible? The queries are not a problem (already
defined) but I can't seem to link.

Jacco
 
Hi,

You can find some code on www.mvps.org/access that could help you do what
you want. But the big question would be: "What harm would there be in just
leaving the link in place"?

HTH
 
Solution:

DoCmd.TransferDatabase acImport, "Microsoft Access", "Filename", acTable,
"tablename_source", "tablename_destination"

<<<<<here go my sql queries>>>>>>

DoCmd.DeleteObject acTable, "tablename_destination"
 

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

Back
Top