Solved

Updating a master file in Access

Posted on 2012-03-28
2
251 Views
Last Modified: 2012-03-28
I have a table with a list of employee records, each identified by a unique id, and there are 9 other fields on the table.  There are around 25,000 records.  I have to maintain this master table as updates to the records are submitted to me.  The structure of the update tables is the same as the master table and between 1 and 9 of the non employee id fields may have changed.  Is there a query that can be run to elegantly update the master table?  Please see attached for a sample of the master table and update table.
EE-update-master-file.mdb
0
Comment
Question by:GIStewart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 350 total points
ID: 37777235
If you are always going to get all fields then just update all fields.

Update Master as M Inner join  [Update] as U on
M.Employee_id = U.Employee_id
Set M.flda=u.flda, m.fldb= u.fldb, M.fldc=u.fldc, m.fldd= u.fldd,M.flde=u.flde, m.fldf= u.fldf,
M.fldg=u.fldg, m.fldh= u.fldh,M.fldi=u.fldi, m.fldj= u.fldj
0
 

Author Comment

by:GIStewart
ID: 37778008
thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question