Hi Guys, I have a combo box on an invoice line item subform and use:
Code:
strFilter = "ProductID=" & Me!cboProducts
Me!price = DLookup("price", "products", strFilter)
To pull the price into the line item, however, each customer can have a different discount level, 5%, 6.25% etc so I need a way to apply the discount to the price.
The parent form has the discount amount available: Forms![frmOrderPlacement]![txtDiscount] so wondered if there was a way to calculate the final price within the combo selection process like:
Code:
Me!price = DLookup("price*Forms![frmOrderPlacement]![txtDiscount] ", "products", strFilter)
but assume as its a Dlookup it simply wants to get the value of price and cannot do a calculation at this point?
So any suggestions would be appreciate.
I don't want to create a temp table, as the users are using a multiuser virtual desktop, so temp table don't work.
Thanks in advance.