=DLookUp("Rate","tblLevyRates",[tblLevyRates]![LevyYear]=[LevyYear] And [tblLevyRates]![Species]=[Species])
The above is the control source for a textbox on a subform.
I just cannot get this to work. I have tried mimicing all the example I could find in the various threads, but no luck with any of them, I just get #Name? in the textbox.
I am too thick to understand where I need to include ' s and " s and & s, and I think this is the root of the problem.
Species is Text
Rate is Currency
LevyYear is Long Integer
This is related to a previous thread I have posted, and is one potential solution I am tinkering with.
Can anyone correct the way I have written the function?
The above is the control source for a textbox on a subform.
I just cannot get this to work. I have tried mimicing all the example I could find in the various threads, but no luck with any of them, I just get #Name? in the textbox.
I am too thick to understand where I need to include ' s and " s and & s, and I think this is the root of the problem.
Species is Text
Rate is Currency
LevyYear is Long Integer
This is related to a previous thread I have posted, and is one potential solution I am tinkering with.
Can anyone correct the way I have written the function?