importing from another db

G

Guest

Hi All,
I have an application I have created that gets information form both
local and linked tables. The local tables are imported from another database
that is downloaded from an outside source on a weekly basis. I am setting up
process that enables the user to select which weeks db they want data to come
from and have the correct tables imported into the db. I have used the
Docmd.transferdatabase method and as the database file path would change I
have set a string data type to read the file path and used this in the docmd
function. I thought this would work but it doesn't.

eg. this example should import the table "Aim" from the downloaded database
into the current database.

DoCmd.TransferDatabase acImport, "Microsoft Access", dbselect, acTable, "Aim"

any suggestions on where i'm going wrong are welcome, thanks
 

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