G
Guest
I have a query that is working fine on my computer but when I try to run it
on a other computer, I receive the error message :
This expression is typed incorrectly, or it is too complex to be evaluated.
For example, a numeric expression may contain too many complicated elements.
Try simplifying the expression by assigning parts of the expression to
variables. (Error 3071).
How can my query be OK for my computer an too complex for a other? I have
created much more complicated query in the past without problem.
Here is my Query, there is nothing complex here to me:
SELECT Sum([QRY-CAROnTimePerformanceByDate].NumberOfCarDue) AS
SumOfNumberOfCarDue, Min([QRY-CAROnTimePerformanceByDate].DueDate) AS
MinOfDueDate, Sum([QRY-CAROnTimePerformanceByDate].CAROnTime) AS
SumOfCAROnTime, Format([DueDate],"mmmm yyyy") AS DueMonth
FROM [QRY-CAROnTimePerformanceByDate]
GROUP BY Format([DueDate],"mmmm yyyy");
Here is QRY-CARonTimePerformanceByDate :
SELECT [QRY-NumberOfCARDueByDate].NumberOfCarDue,
[QRY-NumberOfCARDueByDate].DueDate,
[QRY-NumberOfCAROnTimeByDate].NumberOfCARCloseOnTime AS CAROnTimeRough,
IIf(IsNull([CAROnTimeRough]),0,[CAROnTimeRough]) AS CAROnTime
FROM [QRY-NumberOfCARDueByDate] LEFT JOIN [QRY-NumberOfCAROnTimeByDate] ON
[QRY-NumberOfCARDueByDate].DueDate = [QRY-NumberOfCAROnTimeByDate].DueDate
ORDER BY [QRY-NumberOfCARDueByDate].DueDate;
And the 2 last one Qry-NumberOfCARDueByDate:
SELECT Count(CAR.CAR) AS NumberOfCarDue, CAR.Duedate
FROM CAR
GROUP BY CAR.Duedate
HAVING ((Not (CAR.Duedate) Is Null))
ORDER BY CAR.Duedate;
And QRY-NumberOfCAROnTimeByDate :
SELECT Count(CAR.CAR) AS NumberOfCARCloseOnTime, CAR.Duedate
FROM CAR
WHERE (((CAR.ClosedDate)<=[DueDate]))
GROUP BY CAR.Duedate
ORDER BY CAR.Duedate;
Like I said before, I did much more complex query in the past and this is
the first time it is not working. Any ideas why?
on a other computer, I receive the error message :
This expression is typed incorrectly, or it is too complex to be evaluated.
For example, a numeric expression may contain too many complicated elements.
Try simplifying the expression by assigning parts of the expression to
variables. (Error 3071).
How can my query be OK for my computer an too complex for a other? I have
created much more complicated query in the past without problem.
Here is my Query, there is nothing complex here to me:
SELECT Sum([QRY-CAROnTimePerformanceByDate].NumberOfCarDue) AS
SumOfNumberOfCarDue, Min([QRY-CAROnTimePerformanceByDate].DueDate) AS
MinOfDueDate, Sum([QRY-CAROnTimePerformanceByDate].CAROnTime) AS
SumOfCAROnTime, Format([DueDate],"mmmm yyyy") AS DueMonth
FROM [QRY-CAROnTimePerformanceByDate]
GROUP BY Format([DueDate],"mmmm yyyy");
Here is QRY-CARonTimePerformanceByDate :
SELECT [QRY-NumberOfCARDueByDate].NumberOfCarDue,
[QRY-NumberOfCARDueByDate].DueDate,
[QRY-NumberOfCAROnTimeByDate].NumberOfCARCloseOnTime AS CAROnTimeRough,
IIf(IsNull([CAROnTimeRough]),0,[CAROnTimeRough]) AS CAROnTime
FROM [QRY-NumberOfCARDueByDate] LEFT JOIN [QRY-NumberOfCAROnTimeByDate] ON
[QRY-NumberOfCARDueByDate].DueDate = [QRY-NumberOfCAROnTimeByDate].DueDate
ORDER BY [QRY-NumberOfCARDueByDate].DueDate;
And the 2 last one Qry-NumberOfCARDueByDate:
SELECT Count(CAR.CAR) AS NumberOfCarDue, CAR.Duedate
FROM CAR
GROUP BY CAR.Duedate
HAVING ((Not (CAR.Duedate) Is Null))
ORDER BY CAR.Duedate;
And QRY-NumberOfCAROnTimeByDate :
SELECT Count(CAR.CAR) AS NumberOfCARCloseOnTime, CAR.Duedate
FROM CAR
WHERE (((CAR.ClosedDate)<=[DueDate]))
GROUP BY CAR.Duedate
ORDER BY CAR.Duedate;
Like I said before, I did much more complex query in the past and this is
the first time it is not working. Any ideas why?