Hi All,
I'm new here, and found the site when looking for some help on a DLookup problem. I'm just about to pull the rest of my hair out.
I've tried just about everything - even copying and pasting the code directly from the Microsoft site.
My form has a Combo box, which links to a table not bound to my form. I have 3 other fields which I need the value for, based on the Combo Box selection. When I enter the following into AfterUpdate, I get the error #Error returned.
=DLookUp("AcqCosts","CSL_Agreed_Costs","AgreedCostType=" & [AgreedCostType])
I have also tried using this in the Control Source, but it has the same effect.
Is the above code correct? It's driving me nuts, and the bean counter has given me until Monday to get it fixed.
Can anybody help?
Many thanks
I'm new here, and found the site when looking for some help on a DLookup problem. I'm just about to pull the rest of my hair out.
I've tried just about everything - even copying and pasting the code directly from the Microsoft site.
My form has a Combo box, which links to a table not bound to my form. I have 3 other fields which I need the value for, based on the Combo Box selection. When I enter the following into AfterUpdate, I get the error #Error returned.
=DLookUp("AcqCosts","CSL_Agreed_Costs","AgreedCostType=" & [AgreedCostType])
I have also tried using this in the Control Source, but it has the same effect.
Is the above code correct? It's driving me nuts, and the bean counter has given me until Monday to get it fixed.
Can anybody help?
Many thanks