where there's a change in another field.
Ok, i have a query and I want it to NOT show the SKU and the information for that sku again IF the WHSE changes.
Here's what I currently have and not sure how to limit it to do the above.
SELECT NegativeOnHand.TransactionDate, IM2_InventoryItemWhseDetl.WhseCode AS FromWHSE, NegativeOnHand.ProductLine, NegativeOnHand.ProductType, NegativeOnHand.StdUM, NegativeOnHand.StdPrice, IIf([QOH]<[QtyNeg]*-1,[QOH]*-1,[QtyNeg]*-1) AS TnxQty, NegativeOnHand.StdCost, IM2_InventoryItemWhseDetl.QtyOnHand AS QOH, NegativeOnHand.WhseCode, NegativeOnHand.SKU, NegativeOnHand.QtyOnHand AS QtyNeg
FROM (NegativeOnHand INNER JOIN IM2_InventoryItemWhseDetl ON NegativeOnHand.SKU = IM2_InventoryItemWhseDetl.ItemNumber) INNER JOIN IM1_InventoryMasterfile ON IM2_InventoryItemWhseDetl.ItemNumber = IM1_InventoryMasterfile.ItemNumber
WHERE (((IM2_InventoryItemWhseDetl.WhseCode)="000" Or (IM2_InventoryItemWhseDetl.WhseCode)="005" Or (IM2_InventoryItemWhseDetl.WhseCode)="006") AND ((IM2_InventoryItemWhseDetl.QtyOnHand)>0) AND ((NegativeOnHand.WhseCode)<>"004") AND ((IM1_InventoryMasterfile.Category2)<>"Crosses" And (IM1_InventoryMasterfile.Category2)<>"Lamps")) OR (((IM2_InventoryItemWhseDetl.WhseCode)="000" Or (IM2_InventoryItemWhseDetl.WhseCode)="005" Or (IM2_InventoryItemWhseDetl.WhseCode)="006") AND ((IM2_InventoryItemWhseDetl.QtyOnHand)>0) AND ((NegativeOnHand.WhseCode)<>"004") AND ((IM1_InventoryMasterfile.Category4)<>"LCS"))
ORDER BY IM2_InventoryItemWhseDetl.WhseCode, NegativeOnHand.WhseCode, NegativeOnHand.SKU;
Your help would be greatly appreciated!!
Ok, i have a query and I want it to NOT show the SKU and the information for that sku again IF the WHSE changes.
Here's what I currently have and not sure how to limit it to do the above.
SELECT NegativeOnHand.TransactionDate, IM2_InventoryItemWhseDetl.WhseCode AS FromWHSE, NegativeOnHand.ProductLine, NegativeOnHand.ProductType, NegativeOnHand.StdUM, NegativeOnHand.StdPrice, IIf([QOH]<[QtyNeg]*-1,[QOH]*-1,[QtyNeg]*-1) AS TnxQty, NegativeOnHand.StdCost, IM2_InventoryItemWhseDetl.QtyOnHand AS QOH, NegativeOnHand.WhseCode, NegativeOnHand.SKU, NegativeOnHand.QtyOnHand AS QtyNeg
FROM (NegativeOnHand INNER JOIN IM2_InventoryItemWhseDetl ON NegativeOnHand.SKU = IM2_InventoryItemWhseDetl.ItemNumber) INNER JOIN IM1_InventoryMasterfile ON IM2_InventoryItemWhseDetl.ItemNumber = IM1_InventoryMasterfile.ItemNumber
WHERE (((IM2_InventoryItemWhseDetl.WhseCode)="000" Or (IM2_InventoryItemWhseDetl.WhseCode)="005" Or (IM2_InventoryItemWhseDetl.WhseCode)="006") AND ((IM2_InventoryItemWhseDetl.QtyOnHand)>0) AND ((NegativeOnHand.WhseCode)<>"004") AND ((IM1_InventoryMasterfile.Category2)<>"Crosses" And (IM1_InventoryMasterfile.Category2)<>"Lamps")) OR (((IM2_InventoryItemWhseDetl.WhseCode)="000" Or (IM2_InventoryItemWhseDetl.WhseCode)="005" Or (IM2_InventoryItemWhseDetl.WhseCode)="006") AND ((IM2_InventoryItemWhseDetl.QtyOnHand)>0) AND ((NegativeOnHand.WhseCode)<>"004") AND ((IM1_InventoryMasterfile.Category4)<>"LCS"))
ORDER BY IM2_InventoryItemWhseDetl.WhseCode, NegativeOnHand.WhseCode, NegativeOnHand.SKU;
Your help would be greatly appreciated!!