I am trying to setup a orders db and it has customers with different price levels when they place the order I want to save the current price for the item in the order details table.
I know how to write a string for a single filter but how would I do it to filter both the Product ID and the Price Level ID to get the customers price
I currently have:
strFilter = "ProductID = " & Me!ProductID
Me!UnitPrice = DLookup("Price", "tblPrice", strFilter)
The table where the prices are saved is tblPrice and the price level field is named PriceLevel and on the order form there is a text box that shows the customers price level name txtPriceLevel.
I know how to write a string for a single filter but how would I do it to filter both the Product ID and the Price Level ID to get the customers price
I currently have:
strFilter = "ProductID = " & Me!ProductID
Me!UnitPrice = DLookup("Price", "tblPrice", strFilter)
The table where the prices are saved is tblPrice and the price level field is named PriceLevel and on the order form there is a text box that shows the customers price level name txtPriceLevel.