VBA调用access自带的导入导出数据功能

1,252次阅读
一条评论

共计 872 个字符,预计需要花费 3 分钟才能阅读完成。

导出代码

DoCmd.RunCommand acCmdExportRTF

DoCmd.RunCommand acCmdExportAccess

DoCmd.RunCommand acCmdExportdBase

DoCmd.RunCommand acCmdExportExcel

DoCmd.RunCommand acCmdExportFixedFormat

DoCmd.RunCommand acCmdExportHTML

DoCmd.RunCommand acCmdExportODBC

DoCmd.RunCommand acCmdExportSharePointList

DoCmd.RunCommand acCmdExportSnapShot

DoCmd.RunCommand acCmdExportText

DoCmd.RunCommand acCmdExportXML

导入代码

DoCmd.RunCommand acCmdImportAttachAccess

DoCmd.RunCommand acCmdImportAttachdBase

DoCmd.RunCommand acCmdImportAttachExcel

DoCmd.RunCommand acCmdImportAttachHTML

DoCmd.RunCommand acCmdImportAttachODBC

DoCmd.RunCommand acCmdImportAttachOutlook

DoCmd.RunCommand acCmdImportAttachSharePointList

DoCmd.RunCommand acCmdImportAttachText

DoCmd.RunCommand acCmdImportAttachXML

示例

VBA 调用 access 自带的导入导出数据功能

新建窗体,在窗体上新建命令按钮控件,然后在命令按钮控件的 VBA 代码下写入相对于的导入导出代码。

VBA 调用 access 自带的导入导出数据功能

 

 

注意:该方法适用于 2007/2010/2013/2016 的 ACCCESS 版本。

摘自 http://www.accessoft.com/article-show.asp?id=7991

正文完
 0
水东柳
版权声明:本站原创文章,由 水东柳 2019-01-15发表,共计872字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(一条评论)