Also some things to think about when writing this function:
Dlookup returns Null when it can't find a value and that can screw up a lot of things. Its a good idea to wrap Dlookups in a Nz() function which forces nulls to some value (-1 perhaps to indicate an error.)
You are also going to need to test your input values to make sure they need to be double interpolated. Suppose you have an actual record for the exact values you are looking up--you would want that exact value and not the double interpolated one, right?
Dlookup returns Null when it can't find a value and that can screw up a lot of things. Its a good idea to wrap Dlookups in a Nz() function which forces nulls to some value (-1 perhaps to indicate an error.)
You are also going to need to test your input values to make sure they need to be double interpolated. Suppose you have an actual record for the exact values you are looking up--you would want that exact value and not the double interpolated one, right?