jd_boss_hogg
Registered User.
- Local time
- Today, 04:09
- Joined
- Aug 5, 2009
- Messages
- 88
Pulling my hair out with this - have spent over an hour retyping it, trying to get it to work. Can anyone tell me where i'm going wrong?
I'm in a report called "Mask_order_book". There is a field on this report called "CUST_REF" (a text field). I want to look up this value in the "Product" field (text) in a table called "Pricelist", and then return the 'Price' value from that table.
I'm using...
=IIf([NET]=0,DLookUp("Price","Pricelist","[Product] = '" & [Reports]![Mask_order_book]![CUST_REF] & "'"),[NET])
It's just the criteria that doesn't work. I get #error returned on the report when ran.
Thanks in advance.
I'm in a report called "Mask_order_book". There is a field on this report called "CUST_REF" (a text field). I want to look up this value in the "Product" field (text) in a table called "Pricelist", and then return the 'Price' value from that table.
I'm using...
=IIf([NET]=0,DLookUp("Price","Pricelist","[Product] = '" & [Reports]![Mask_order_book]![CUST_REF] & "'"),[NET])
It's just the criteria that doesn't work. I get #error returned on the report when ran.
Thanks in advance.