Solved

Updating a master file in Access

Posted on 2012-03-28
2
249 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
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

Industry Leaders: 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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

740 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