I'm stumped with this query - solved - see post #9
[EDIT:] SOLVED see post #9
This query:
Produces these results:
Yet, this query:
Notice the
at the end....
Produces these results:
I am baffled. What am I missing?
[EDIT:] SOLVED see post #9
This query:
Code:
SELECT B_Inventory.Barcode,
B_Inventory.QtyOnHand,
B_Inventory.QtyInPO,
A_ScriptPODetail.Quantity,
A_ScriptPODetail.ScriptPOID
FROM B_Inventory INNER JOIN A_ScriptPODetail ON B_Inventory.Barcode=A_ScriptPODetail.Barcode
WHERE (((B_Inventory.QtyOnHand)=(B_Inventory.QtyInPO))
And ((B_Inventory.QtyInPO)>0)
And ((A_ScriptPODetail.Quantity)=(B_Inventory.QtyInPO))
And ((A_ScriptPODetail.Shipped)=(Yes)));
Produces these results:

Yet, this query:
Code:
SELECT B_Inventory.Barcode,
B_Inventory.QtyOnHand,
B_Inventory.QtyInPO,
A_ScriptPODetail.Quantity,
A_ScriptPODetail.ScriptPOID
FROM B_Inventory INNER JOIN A_ScriptPODetail ON B_Inventory.Barcode=A_ScriptPODetail.Barcode
WHERE (((B_Inventory.QtyOnHand)=(B_Inventory.QtyInPO))
And ((B_Inventory.QtyInPO)>0) And ((A_ScriptPODetail.Quantity)=(B_Inventory.QtyInPO))
And ((A_ScriptPODetail.Shipped)=(Yes))
And ((A_ScriptPODetail.ScriptPOID)=22252));
Notice the
Code:
And ((A_ScriptPODetail.ScriptPOID)=22252))
Produces these results:

I am baffled. What am I missing?
Last edited: