I can’t figure out a way to make an update query to do the following:
I have 3 tables, Employee, Personnel Actions and Action Details; I have a form to enter the Personnel Action for an employee but need an update query after the data is entered into the Action Details table to update just the information that has changed into the Employee table.
My Action Details table has two fields, "FieldName" and "NewFieldValue". So for each Personnel Action there could be one or many fields that change. How do i create a update query that will look at each "FieldName" and its "NewFieldValue" and then find that field in the Employee table and update it with the new value?
I am attaching a word doc with the form and table structure if this helps.
Thanks in advance for any help
I have 3 tables, Employee, Personnel Actions and Action Details; I have a form to enter the Personnel Action for an employee but need an update query after the data is entered into the Action Details table to update just the information that has changed into the Employee table.
My Action Details table has two fields, "FieldName" and "NewFieldValue". So for each Personnel Action there could be one or many fields that change. How do i create a update query that will look at each "FieldName" and its "NewFieldValue" and then find that field in the Employee table and update it with the new value?
I am attaching a word doc with the form and table structure if this helps.
Thanks in advance for any help
Attachments
Last edited: