D
Don
Let me set the stage then try to explain what I think I understand about
update. Basically, I am adding some data (a new table) to our employee
database from another, external data source. (I'm going to simplify for the
sake of clarity.) In the existing database, there is tblMaster which
contains the master core records for each employee. For this example, the
fields of consequence are EmployeeID, LastName, and FirstName.
The new table (after import), has among other fields, LastName and
FirstName, but not EmployeeID. (EmployeeID is what is used to link
tblMaster to all other tables.) So, my goal is to add the EmployeeID field
to the new table (tblNew) so the architecture is consistent.
So, I figured an UPDATE query was a good candidate to copy the value of the
EmployeeID field from tblMaster to tblNew based on a temporary link on
LastName and FirstName. However, it seems all the examples I have found for
update queries have the updated field take on some "static" value, not a
value dependent on the link between the tables. Does this mean one cannot
update a field in one table with data from another table based on a link?
Or is it simply my interpretation is not correct? If the latter, would
someone kindly explain how this would be done.
Thanks!
Don
update. Basically, I am adding some data (a new table) to our employee
database from another, external data source. (I'm going to simplify for the
sake of clarity.) In the existing database, there is tblMaster which
contains the master core records for each employee. For this example, the
fields of consequence are EmployeeID, LastName, and FirstName.
The new table (after import), has among other fields, LastName and
FirstName, but not EmployeeID. (EmployeeID is what is used to link
tblMaster to all other tables.) So, my goal is to add the EmployeeID field
to the new table (tblNew) so the architecture is consistent.
So, I figured an UPDATE query was a good candidate to copy the value of the
EmployeeID field from tblMaster to tblNew based on a temporary link on
LastName and FirstName. However, it seems all the examples I have found for
update queries have the updated field take on some "static" value, not a
value dependent on the link between the tables. Does this mean one cannot
update a field in one table with data from another table based on a link?
Or is it simply my interpretation is not correct? If the latter, would
someone kindly explain how this would be done.
Thanks!
Don