T
TraciAnnNeedsHelp
Here is the SQL:
SELECT dbo_vCTRequest.RequestID, dbo_vCTRequestPartDetail.RequestPartID,
dbo_vCTRequestPartDetail.PartNum, dbo_vCTRequestPartDetail.Quantity,
dbo_vCTRequestPartDetail.Cost, dbo_vCTRequestPartDetail.PartStatus,
dbo_vCTRequestPartDetail.ReturnedGood,
dbo_vCTRequestPartDetail.InboundTracking,
dbo_vCTRequestPartDetail.DefectiveReturnTracking, IIf([ReturnedGood] In
(1),-[Cost],0) AS CreditAmount, Nz([Cost])+Nz([CreditAmount]) AS Total
FROM (dbo_vCTRequest INNER JOIN dbo_vCTRequestTime ON
dbo_vCTRequest.RequestID = dbo_vCTRequestTime.RequestID) INNER JOIN
dbo_vCTRequestPartDetail ON dbo_vCTRequest.RequestID =
dbo_vCTRequestPartDetail.RequestID
WHERE (((dbo_vCTRequest.ExpectedArrivedOnsite) Between [Enter Start Date]
And [Enter End Date]) AND ((dbo_vCTRequest.ProjectID)=85))
ORDER BY dbo_vCTRequest.RequestID, dbo_vCTRequestPartDetail.RequestPartID;
Thanks!
TraciAnn
SELECT dbo_vCTRequest.RequestID, dbo_vCTRequestPartDetail.RequestPartID,
dbo_vCTRequestPartDetail.PartNum, dbo_vCTRequestPartDetail.Quantity,
dbo_vCTRequestPartDetail.Cost, dbo_vCTRequestPartDetail.PartStatus,
dbo_vCTRequestPartDetail.ReturnedGood,
dbo_vCTRequestPartDetail.InboundTracking,
dbo_vCTRequestPartDetail.DefectiveReturnTracking, IIf([ReturnedGood] In
(1),-[Cost],0) AS CreditAmount, Nz([Cost])+Nz([CreditAmount]) AS Total
FROM (dbo_vCTRequest INNER JOIN dbo_vCTRequestTime ON
dbo_vCTRequest.RequestID = dbo_vCTRequestTime.RequestID) INNER JOIN
dbo_vCTRequestPartDetail ON dbo_vCTRequest.RequestID =
dbo_vCTRequestPartDetail.RequestID
WHERE (((dbo_vCTRequest.ExpectedArrivedOnsite) Between [Enter Start Date]
And [Enter End Date]) AND ((dbo_vCTRequest.ProjectID)=85))
ORDER BY dbo_vCTRequest.RequestID, dbo_vCTRequestPartDetail.RequestPartID;
Thanks!
TraciAnn