将访问 table 从一个访问数据库导出到新的访问数据库

exporting access table from one access database to a new access database

下午好, 我需要将 table 从一个数据库导出到特定文件夹中的新数据库。 Table 名字是 "Detail Report"。新数据库的名称也需要是 "Detail Report"。我一直在尝试多个代码,但没有任何效果。

我尝试使用的最新代码是:

DoCmd.TransferDatabase , acExport, acTable, "Detail Report", "Y:\Charter\working\new folder\"Detail Report.accd", False

请帮忙告诉我我缺少什么。

谢谢

尝试使用正确的语法:

DoCmd.TransferDatabase  acExport, "Microsoft Access", "Y:\Charter\working\new folder\Detail Report.accd", acTable, "Detail Report", "Detail Report", False

并且目标数据库必须存在。

创建数据库:DBEngine.CreateDatabase Method (DAO)