简体   繁体   English

如何将excel表中的数据导出到与excel表不同的access表中?

[英]how to export data from excel table into access table which is not the same as excel table?

How to export data from excel table into access table which is not the same as excel table, ie some data is same, some is different, I want to auto extract only certain data?如何将excel表中的数据导出到与excel表不同的access表中,即有些数据相同,有些数据不同,我只想自动提取某些数据? DETAILS I have over 5000 students and researchers in my Access database and they are unique to employee/student number.详细信息 我的 Access 数据库中有 5000 多名学生和研究人员,他们对员工/学生编号是唯一的。 I need to maintain training records however I do not get training records sent to me for whatever reason.我需要保留培训记录,但是无论出于何种原因,我都不会收到培训记录。 But HR does and their Excel database is auto-updated with this information.但是 HR 可以,并且他们的 Excel 数据库会使用此信息自动更新。

The Excel HR database and my Access H&S database both use Emp/Student # as identifiers and our training columns are the exact same BUT they are not entirely the same (ie. they have some columns that I don't have and Viceversa). Excel HR 数据库和我的 Access H&S 数据库都使用 Emp/Student # 作为标识符,我们的培训列完全相同,但它们并不完全相同(即它们有一些我没有的列,反之亦然)。

I spent the holidays updating my database with their training info so that AT THIS MOMENT they are the same.我在假期里用他们的培训信息更新了我的数据库,以便在这一刻他们是一样的。 But come the next pay period they will have an auto update of training and I will NOT.但是到下一个支付期,他们将自动更新培训,而我不会。 Therefore I want to figure out a way to auto-update my DB with theirs... Would love any help you can offer.因此,我想想办法用他们的数据库自动更新我的数据库......希望您能提供任何帮助。 I know I know they answer may be staring me in the face but I am new to access and I am asking for help.我知道我知道他们的回答可能正盯着我看,但我是新手,我正在寻求帮助。 Thanks in advance!提前致谢!

Japes日本人

You can link to your Excel spreadsheet from Access or import it into a new table in Access.您可以从 Access 链接到 Excel 电子表格或将其导入到 Access 中的新表中。 Then create a new query that links your Excel table to the Access by the identifier field(s).然后创建一个新查询,将 Excel 表链接到 Access by the identifier 字段。 Set the query to be an Update query and then select the fields in the Excel table that you want to update the Access table with.将查询设置为更新查询,然后选择 Excel 表中要用于更新 Access 表的字段。 I would suggest that you make a backup of the Access data before actually running the update query.我建议您在实际运行更新查询之前备份 Access 数据。

Not sure if I'm saying the same thing that @jhTuppeny is saying, but LINK the Excel table into your Access database.不确定我说的是否与@jhTuppeny 所说的相同,但是将 Excel 表链接到您的 Access 数据库中。 Call that the "rawdata" table or whatever you want to call it.称其为“原始数据”表或任何您想称其为的。

Use this "rawdata" table as the basis for a query in access that will either append/update your Access table.使用此“原始数据”表作为访问查询的基础,该查询将附加/更新您的访问表。 In this query, you can also automate the data for fields that the rawdata doesn't have, or fill it in with DUMMY values that you can manually update in your updated table.在此查询中,您还可以自动处理原始数据没有的字段的数据,或者使用可以在更新表中手动更新的 DUMMY 值填充它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM