I'm trying to create a nested IIf Dlookup without success.
Here is my form.

I am trying to look up a wage rate for a particular Job Number based on a drop down list on a form but... the formula needs to reference the field in a table that matches the selected drop down.
So if I select “SiteLead” from the drop down in the form for Worker1, (on form), I want it to return the value of 8.68 from the table below.

This I have been able to do no problem. I used an After Update event procedure to create a Dlookup. Here is the code that works, but obviously only if “SiteLead” is selected.

What I can’t do is refer to the other columns if the selection changes from "SiteLead" to "FloorTech1".
I tried to create a nested IIF function but without success. Can anyone give me some advice to this newbie?
Here is my form.

I am trying to look up a wage rate for a particular Job Number based on a drop down list on a form but... the formula needs to reference the field in a table that matches the selected drop down.
So if I select “SiteLead” from the drop down in the form for Worker1, (on form), I want it to return the value of 8.68 from the table below.

This I have been able to do no problem. I used an After Update event procedure to create a Dlookup. Here is the code that works, but obviously only if “SiteLead” is selected.

What I can’t do is refer to the other columns if the selection changes from "SiteLead" to "FloorTech1".
I tried to create a nested IIF function but without success. Can anyone give me some advice to this newbie?