If the tables to import are always the same name then you can use the TransferDatabase Method from VBA (or use it in Macro form if preferred).
Main Topics
Browse All TopicsHi,
I get a dBase file daily and would like to transfer the data from it into my Access application. How do I convert a dDase file programatically into an Access file?
Thank you!
Serge
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
In your access database, create a module, and then a function
function serge()
DoCmd.TransferDatabase acImport, "dbase iv", ".\", acTable, "my_dbase.dbf", "yourtablename"
end function
What would the path for the dbf file be? As I stated it, it is the current working directory (.\).
I sense you are asking how to move data from a dbf file to another database other than the one you have open.
Right?
Well, let's first, for the simplicity sake, suppose that both 12055118.dbf, the table to be converted, and the target Access db my_Access are in the same directory, in C:\Converted_tables. Actually, I alrteady tried that code and gotten " The Microsoft Jet database engine could not find the object '12055118.dbf' " Thank you!
Sub Serge()
DoCmd.TransferDatabase acImport, "dbase iv", ".\", acTable, "12055118.dbf", "my_Access_table"
End Sub
Ok! This procedure ran but I can't find my_Access_table. Are we creating a new Access DB here with name my_Access_table and a table in it with the same name? If not then how does the program know which Access db to put my_Access_table , we are not specifyiong its name in the procedure?
Sub transfer_into_Access()
DoCmd.TransferDatabase acImport, "dbase iv", "G:\MFS\IPA\Sergei\Brokers
End Sub
Business Accounts
Answer for Membership
by: leonstrykerPosted on 2005-12-07 at 08:43:21ID: 15437495
Go to File/Import select .dbf extension and vola!!
Leon