Hi All,
I've been trying to figure this our for awhile and can't seem to catch where I'm going wrong.
I have these tables...
tblPurchaseOrder
PurchaseOrderID (PK)
PurchaseOrderDate
tblPurchaseOrderDetails
PurchaseOrderDetailID (PK)
PurchaseOrderID (FK)
InventoryID
PurchaseOrderQty
PriceEach
Now..I am trying to create a query that returns the Last Date a product was ordered along with the price it was ordered at.
I've tried a totals query with tblPurchaseOrder linked to tblPurchaseOrderDetails on the PurchaseOrderID field. I have a Group By on the InventoryID and a Last on PurchaseOrderDate. Then I went and created a new query and added the qryLastOrderDate, and tblPurchaseOrderDetails, linked on InventoryID and dropped down LastOfPurchaseOrderDate,InventoryID, and Price each. It returns more records than I'm wanting it to.
Any help appreciated
I've been trying to figure this our for awhile and can't seem to catch where I'm going wrong.
I have these tables...
tblPurchaseOrder
PurchaseOrderID (PK)
PurchaseOrderDate
tblPurchaseOrderDetails
PurchaseOrderDetailID (PK)
PurchaseOrderID (FK)
InventoryID
PurchaseOrderQty
PriceEach
Now..I am trying to create a query that returns the Last Date a product was ordered along with the price it was ordered at.
I've tried a totals query with tblPurchaseOrder linked to tblPurchaseOrderDetails on the PurchaseOrderID field. I have a Group By on the InventoryID and a Last on PurchaseOrderDate. Then I went and created a new query and added the qryLastOrderDate, and tblPurchaseOrderDetails, linked on InventoryID and dropped down LastOfPurchaseOrderDate,InventoryID, and Price each. It returns more records than I'm wanting it to.
Any help appreciated