G
Guest
I have the following table structures:
tblBatch tblParts
--------- ----------
FrameNum PartID
RunDate CVisual
SpecID AVisual
FinalInspect
FrameID(fk)
I want a query that will enable a user to query by RunDate and be given the
total number of PartID's for each FrameNum and what the Yield was where a good
PartID is one where CVisual, AVisual, and FinalInspect are either Null or
equal to Test. I've got as far as creating a query that will meet the filter
criteria
SELECT tblBatch.Traveler_Num, tblPArts.MEA_Name, tblBatch.ProductSpec,
tblBatch.RunDate, tblBatch.CTime, tblPArts.Cinspect, tblPArts.AInspect,
tblPArts.FinalInspect
FROM INNER JOIN tblPArts ON tblBatch.Traveler_ID = tblPArts.TravelerID
WHERE (((tblBatch.RunDate) Between [start date] And [end date]) AND
((tblPArts.Cinspect) Is Null) AND ((tblPArts.AInspect) Is Null) AND
((tblPArts.FinalInspect) Is Null)) OR (((tblPArts.Cinspect)="test")) OR
(((tblPArts.AInspect)="test")) OR (((tblPArts.FinalInspect)="test"));
but now I'm at a loss for how to calculate the Yield.
Any help is greatly appreciated.
tblBatch tblParts
--------- ----------
FrameNum PartID
RunDate CVisual
SpecID AVisual
FinalInspect
FrameID(fk)
I want a query that will enable a user to query by RunDate and be given the
total number of PartID's for each FrameNum and what the Yield was where a good
PartID is one where CVisual, AVisual, and FinalInspect are either Null or
equal to Test. I've got as far as creating a query that will meet the filter
criteria
SELECT tblBatch.Traveler_Num, tblPArts.MEA_Name, tblBatch.ProductSpec,
tblBatch.RunDate, tblBatch.CTime, tblPArts.Cinspect, tblPArts.AInspect,
tblPArts.FinalInspect
FROM INNER JOIN tblPArts ON tblBatch.Traveler_ID = tblPArts.TravelerID
WHERE (((tblBatch.RunDate) Between [start date] And [end date]) AND
((tblPArts.Cinspect) Is Null) AND ((tblPArts.AInspect) Is Null) AND
((tblPArts.FinalInspect) Is Null)) OR (((tblPArts.Cinspect)="test")) OR
(((tblPArts.AInspect)="test")) OR (((tblPArts.FinalInspect)="test"));
but now I'm at a loss for how to calculate the Yield.
Any help is greatly appreciated.