如何将表从一个Access DB复制到另一个Access DB [英] How Do I Copy a table from one Access DB to another Access DB

查看:84
本文介绍了如何将表从一个Access DB复制到另一个Access DB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使从主数据库创建辅助数据库的过程自动化.两个数据库(MS Access)都包含一个表.辅助数据库中的表是主数据库中表的子集.

I am trying to automate a process to create a secondary database from a primary. Both DB's (MS Access) contain one table; the table in the secondary DB is a subset of the table in the primary.

是否有一种简单的方法将一个数据库的记录集复制到另一个数据库?我正在使用VBScript和ADO.

Is there a simple way to copy a recordset frone one DB to another? I am using VBScript and ADO.

谢谢!

推荐答案

尝试使用CopyObject方法:

Try the CopyObject method:

DoCmd.CopyObject "DestinationDatabaseName", "NewName", acTable, "SourceTable"

这篇关于如何将表从一个Access DB复制到另一个Access DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆