I'm getting this error message while running a query:
This expression is typed incorrectly, or 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.
Here is the Access generated SQL statement:
SELECT Invoice.Company, IIf([OrderSource]<>"100" And [OrderSource]<>"200" And [OrderSource]<>"150" And [OrderSource]<>"160" And [OrderSource]<>"170" And [OrderSource]<>"13" And [OrderSource]<>"15" And [OrderSource]<>"16" And [OrderSource]<>"17" And [OrderSource]<>"10",200,[OrderSource]) AS SCode, Sum([Balance]+[AmtPaid]) AS Total
FROM Invoice
WHERE (((Invoice.ShpDate) Between [Starting Date:] And [Ending Date:]))
GROUP BY Invoice.Company, IIf([OrderSource]<>"100" And [OrderSource]<>"200" And [OrderSource]<>"150" And [OrderSource]<>"160" And [OrderSource]<>"170" And [OrderSource]<>"13" And [OrderSource]<>"15" And [OrderSource]<>"16" And [OrderSource]<>"17" And [OrderSource]<>"10",200,[OrderSource]);
The wierd thing is, this query will work on one of my networked computers, but not on the other. Exact same shared database.
Little help?
This expression is typed incorrectly, or 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.
Here is the Access generated SQL statement:
SELECT Invoice.Company, IIf([OrderSource]<>"100" And [OrderSource]<>"200" And [OrderSource]<>"150" And [OrderSource]<>"160" And [OrderSource]<>"170" And [OrderSource]<>"13" And [OrderSource]<>"15" And [OrderSource]<>"16" And [OrderSource]<>"17" And [OrderSource]<>"10",200,[OrderSource]) AS SCode, Sum([Balance]+[AmtPaid]) AS Total
FROM Invoice
WHERE (((Invoice.ShpDate) Between [Starting Date:] And [Ending Date:]))
GROUP BY Invoice.Company, IIf([OrderSource]<>"100" And [OrderSource]<>"200" And [OrderSource]<>"150" And [OrderSource]<>"160" And [OrderSource]<>"170" And [OrderSource]<>"13" And [OrderSource]<>"15" And [OrderSource]<>"16" And [OrderSource]<>"17" And [OrderSource]<>"10",200,[OrderSource]);
The wierd thing is, this query will work on one of my networked computers, but not on the other. Exact same shared database.
Little help?