John,
Thank you, here it is:
SELECT tQuery.FileID, tQuery.BusUnit, tQuery.FileType, tQuery.DecisionDt,
tQuery.Disposition, [MComplete Date].QuesLong, [MComplete Date].Answer,
PTToLegalDate.QuesLong, PTToLegalDate.Answer, PTFromLegalDate.QuesLong,
PTFromLegalDate.Answer, PTToVPDate.QuesLong, PTToVPDate.Answer,
PTFromVPDate.QuesLong, PTFromVPDate.Answer, PTExcpDate.QuesLong,
PTExcpDate.Answer, PTtoAPDate.QuesLong, PTtoAPDate.Answer,
PTtoCustomerDate.QuesLong, PTtoCustomerDate.Answer, [MProcess End
Date2].QuesLong, [MProcess End Date2].Answer, Date() AS Expr2,
DateDiff("d",[MComplete Date.Answer],Date()) AS Expr3, MNoLA.QuesLong,
MNoLA.Answer
FROM ([MComplete Date] INNER JOIN (PTExcpDate INNER JOIN ((((((PTToLegalDate
INNER JOIN PTFromLegalDate ON PTToLegalDate.FileID = PTFromLegalDate.FileID)
INNER JOIN PTToVPDate ON (PTToLegalDate.FileID = PTToVPDate.FileID) AND
(PTFromLegalDate.FileID = PTToVPDate.FileID)) INNER JOIN PTFromVPDate ON
(PTToLegalDate.FileID = PTFromVPDate.FileID) AND (PTFromLegalDate.FileID =
PTFromVPDate.FileID) AND (PTToVPDate.FileID = PTFromVPDate.FileID)) INNER
JOIN PTtoAPDate ON (PTToLegalDate.FileID = PTtoAPDate.FileID) AND
(PTFromLegalDate.FileID = PTtoAPDate.FileID) AND (PTToVPDate.FileID =
PTtoAPDate.FileID) AND (PTFromVPDate.FileID = PTtoAPDate.FileID)) INNER JOIN
PTtoCustomerDate ON (PTToLegalDate.FileID = PTtoCustomerDate.FileID) AND
(PTFromLegalDate.FileID = PTtoCustomerDate.FileID) AND (PTToVPDate.FileID =
PTtoCustomerDate.FileID) AND (PTFromVPDate.FileID = PTtoCustomerDate.FileID)
AND (PTtoAPDate.FileID = PTtoCustomerDate.FileID)) INNER JOIN [MProcess End
Date2] ON (PTToLegalDate.FileID = [MProcess End Date2].FileID) AND
(PTFromLegalDate.FileID = [MProcess End Date2].FileID) AND (PTToVPDate.FileID
= [MProcess End Date2].FileID) AND (PTFromVPDate.FileID = [MProcess End
Date2].FileID) AND (PTtoAPDate.FileID = [MProcess End Date2].FileID) AND
(PTtoCustomerDate.FileID = [MProcess End Date2].FileID)) ON
(PTExcpDate.FileID = [MProcess End Date2].FileID) AND (PTExcpDate.FileID =
PTtoCustomerDate.FileID) AND (PTExcpDate.FileID = PTtoAPDate.FileID) AND
(PTExcpDate.FileID = PTFromVPDate.FileID) AND (PTExcpDate.FileID =
PTToVPDate.FileID) AND (PTExcpDate.FileID = PTToLegalDate.FileID) AND
(PTExcpDate.FileID = PTFromLegalDate.FileID)) ON ([MComplete Date].FileID =
PTToLegalDate.FileID) AND ([MComplete Date].FileID = PTFromLegalDate.FileID)
AND ([MComplete Date].FileID = PTToVPDate.FileID) AND ([MComplete
Date].FileID = PTFromVPDate.FileID) AND ([MComplete Date].FileID =
PTtoAPDate.FileID) AND ([MComplete Date].FileID = PTtoCustomerDate.FileID)
AND ([MComplete Date].FileID = [MProcess End Date2].FileID) AND ([MComplete
Date].FileID = PTExcpDate.FileID)) INNER JOIN (MNoLA INNER JOIN tQuery ON
(MNoLA.FileID = tQuery.FileID) AND (MNoLA.FileID = tQuery.FileID) AND
(MNoLA.FileID = tQuery.FileID)) ON (PTToLegalDate.FileID = tQuery.FileID) AND
(PTFromLegalDate.FileID = tQuery.FileID) AND (PTToVPDate.FileID =
tQuery.FileID) AND (PTFromVPDate.FileID = tQuery.FileID) AND
(PTtoAPDate.FileID = tQuery.FileID) AND (PTtoCustomerDate.FileID =
tQuery.FileID) AND ([MComplete Date].FileID = tQuery.FileID) AND
(PTExcpDate.FileID = tQuery.FileID) AND ([MProcess End Date2].FileID =
tQuery.FileID) AND ([MComplete Date].FileID = tQuery.FileID)
WHERE ((([MComplete Date].Answer) Is Not Null) AND ((DateDiff("d",[MComplete
Date.Answer],Date()))>45));
Cathy
John Vinson said:
Well I surely appreciate your effort.
No, I set it up so [Date1] Is Not Null and as I said [Date2] is today being
Date(). When I pull out the criteria all records for the "days" return a
number value.
Cathy
Cathy, please open your Query in SQL view and post the SQL text here.
Rick or someone else may be able to find the problem if we can see the
whole query.
John W. Vinson[MVP]