I have a table called tmp_table2 which holds historical data for hours worked by various people on a project. I need to then add a charge rate to the Rate field from another table called Staff. The problem is that the charge rate varies from year to year so there are multiple entries for each person in the staff table with a rate for each year so I need to read the Name and Year fields for each record in tmp_table2 and then find the matching Name and Year records in the Staff table. When a match is found the Rate from the Staff table needs to be inserted into tmp_table2.
I've tried to do this with DLookup in a query but it doesn't give me the correct results.
Any help would be appreciated.
I've tried to do this with DLookup in a query but it doesn't give me the correct results.
Any help would be appreciated.