将数据从Excel导入MS Access [英] Import data from Excel into MS Access

查看:183
本文介绍了将数据从Excel导入MS Access的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个excel文件与一些数据,我需要使用VBA将所有数据导入到MS Access中,然后运行一个查询,最后在报表中显示数据。
这可以如何实现?

解决方案

参考: http://office.microsoft.com/en-in/excel- help / import-excel-data-to-a-access-database-HP005200852.aspx



确保Microsoft Excel数据是列表格式:每个列在第一行中有一个标签,并且包含类似的事实,列表中没有空白行或列。

 关闭包含要在Microsoft Access中使用的数据的Excel工作簿。 

在Access中,打开要复制Excel数据的数据库。

在访问文件菜单上,指向获取外部数据,然后单击导入。

在导入对话框中,单击文件类型框中的Microsoft Excel。

在查找列表中,找到要导入的文件,然后双击该文件。

按照导入电子表格向导中的说明进行操作。

谢谢


I have an excel file with some data, I need to import all the data into MS Access using VBA, and then run a query on it, and finally present the data in a report. How can this be acheived?

解决方案

Reference : http://office.microsoft.com/en-in/excel-help/import-excel-data-to-an-access-database-HP005200852.aspx

Make sure the Microsoft Excel data is in list format: each column has a label in the first row and contains similar facts, and there are no blank rows or columns within the list.

Close the Excel workbook that contains the data you want to use in Microsoft Access.

In Access, open the database where you want to copy the Excel data.

On the Access File menu, point to Get External Data, and then click Import.

In the Import dialog box, click Microsoft Excel in the Files of type box.

In the Look in list, locate the file you want to import, and then double-click the file.

Follow the directions in the Import Spreadsheet Wizard.

Thanks

这篇关于将数据从Excel导入MS Access的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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