Full Version: export data to a new mdb file
UtterAccess Discussion Forums > Microsoft® Access > Access Automation
doulos
How to export data to a new mdb file?
thanks
strive4peace
Make a blank database

File, Get External Data, Import
doulos
Sorry, my Q should be like this: how to use access code to export a group of filtered data to a new file which is not exist yet?
Thanks
strive4peace
mNewName = "c:\test.mdb"

If Dir(mNewName ) <> "" Then Kill mNewName

DBEngine.CreateDatabase mNewName , dbLangGeneral

Then you can use

DoCmd.TransferDatabase [transfertype], databasetype, databasename[, objecttype], source, destination[, structureonly][, saveloginid]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.