Hi,
I am using access 2007.
I am using the following tables:
1) PriceMaster with fields
-PriceDate
-ProductCode
-UOM
-UnitPrice.
The PK is a combination of PriceDate, ProductCode & UOM.
2) Sales with fields
-InvoiceNo (PK)
-SaleDate
-ProductCode
-UOM
-UnitPrice
-Quantity -Amount
I have a form based on the Sales table. When the user enters the SaleDate, ProductCode and the UOM, I want to query the PriceMaster table and find the record wherein
the SaleDate <= PriceDate and Sales.ProductCode = PriceMaster.ProductCode and Sales.UOM = PriceMaster.UOM.
I am struggling to get this done.
Would appreciate if someone can throw some light on how to achieve this.
Thanks in advance,
Lissy