导入Excel工作表来访问不同的列名,但相同的数据类型的表。 [英] Import Excel sheet to access table with different column names but same data type.

查看:898
本文介绍了导入Excel工作表来访问不同的列名,但相同的数据类型的表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,

我学习访问,但有足够的遭遇与.NET。下面的实用程序已被开发的访问。

I am learning access, but have sufficient experince with .net. The below utility has to be developed in access.

我想从一个Excel工作表,以不具有相同的列名的存取表上载/导入数据。我不能更改列的名称访问表的表是一种模板从Excel工作表中其他一些进口。

I want to upload/import data from an excel sheet to an access table which does not have same column names. I cannot change the name of the columns in access table as the table is kind of template for some other imports from excel sheet.

可不可以这样在全部完成。如果是的话,请分享的方式,可以做到的。

Can it be done at all. If yes please share a way that can be done.

什么都做的选择我在这。

What all options do I have in it.

推荐答案

请这两个步骤:

1)导入Excel工作表与任何你想要的表名访问。

1) Import the Excel sheet into Access with whatever table name you want.

2)创建追加查询,然后取每个字段从Excel生成的表,并将其映射到相关领域的目标Access表。

2) Create an append query that then takes each field from your Excel-generated table and maps it to the relevant field in the target Access table.

这将有助于特别是如果你经常这样做的过程

This will help particularly if you are doing this process regularly

这篇关于导入Excel工作表来访问不同的列名,但相同的数据类型的表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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