Julia Boswell said:
Folks, I'm re-posting as I had no responses and I'm still stuck, any idea on
the following:
Hi Julia,
Did you "type in" this query?
This part just does not look right to me
(I would expect an On clause to refer to
only 2 tables/queries):
ON
(tblPart.PartSN = tblDespatches.PartSN)
AND
(tblPart.PartSN = qryStatusBaseReceipt.PartSN)
Without data in front of me (so maybe I don't see
something important), I wonder what would
be wrong with:
SELECT tblPart.PartSN, tblDespatches.ReceiptDate, tblPart.Status
FROM tblPart
INNER JOIN
(tblDespatches
INNER JOIN
qryStatusBaseReceipt
ON
( tblDespatches.DespatchNo=qryStatusBaseReceipt.MaxOfDespatchNo )
AND
(tblDespatches.ReceiptDate = qryStatusBaseReceipt.MaxOfReceiptDate))
ON
(tblPart.PartSN = tblDespatches.PartSN)
WHERE (((tblPart.Status)="In Store"))
ORDER BY tblPart.PartSN, tblDespatches.ReceiptDate;
Is it possible that maxdespatchno does not occur
in same record of tbldespatches for maxreceiptdate?
Just one idea....
Gary Walter