当表不匹配时,将数据从Excel导入/附加到Access [英] Importing/Appending data from Excel to Access when the tables don't match

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

问题描述

我正在尝试将数据从excel导入到访问表。当我使用我的第一个excel文件创建表时,它为我提供了仅导入选择列的选项,因此我跳过了与我无关的数据。现在我正在尝试使用新的excel电子表格来更新原始数据库
,但它告诉我我不能,因为excel文档的列数比我的访问数据库多(这是正确的,但仅仅是因为我跳过了在创建数据库时导入数据)。我需要找到一种方法来告诉访问
以跳过导入一些列,就像我在创建中一样,但向导限制了我可以在导入/追加过程中对数据所做的更改量。有没有人知道如何导入数据而不使用向导或如何关闭向导
关闭?顺便说一下,我正在使用Access和Excel 2013.

I am trying to import data from excel to an access table. When I created the table with my first excel file it gave me the option to only import select columns so I skipped the data that wasn't relevant to me. Now I am trying to up date that original database with a new excel spreadsheet but it is telling me that I can't because the excel document has more columns than my access database (which is correct, but only because I skipped importing data when creating the database). I need to find a way to tell access to skip importing some columns like I was able to in the creation but the wizard limits the amount of changes I can make to the data during the import/append process. Does any one know a way to import data without using the wizard or how to turn the wizard off? BTW I am using Access and Excel 2013.

推荐答案

reverett0330 -

reverett0330 –

通常,数据"从外面进来" "应该被视为邪恶。

Usually, data "coming in from outside" should be considered evil.

为了消除邪恶,将电子表格导入到具有相同列数的表格中。

To eliminate the evil, import the spreadsheet into a table that has the same number of columns.

检查数据是良性的。

编写一个追加查询,从临时表中获取所需的列到真实表中。

Write an Append query to fetch the desired columns from your scratch table into your real table.


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

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