Importing Tables

J

JB

I have a database which needs to import a table from databases that are
created by another system.
My database checks the folder for any databases that have been created, and
lists them in a file. I then import the table, append the records to another
table and then delete the database individually.
Is there any way I could automate the process and import to the same table?

1. Check for databases (variable Db names)
2. Import table (always 'partsummary')
3. Delete database.

The code I currently use is below.

Dim strPath As String

strPath = Me.FileName

DoCmd.TransferDatabase acImport, "Microsoft Access", strPath, acTable,
"PartSummary", "t_PartSummary", False

Kill strPath
 

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