I'm getting this error below on existing MS Access queries. Can someone please explain why this is happening? I've included the SQL to one of the queries.
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)
SELECT CInt(Mid([qrySelectDates].[monthyear],InStr([qrySelectDates].[monthyear],"/")+1,10)) AS [Year], Int((Mid([qrySelectDates].[monthyear],1,InStr([qrySelectDates].[monthyear],"/")-1))) AS [month], qrySelectDates.MonthYear, Nz([Failures],0) AS MaterialFailures, Eval("forms!frmAdmin!cboMaterial.column(2)") AS Population, qryIRSOutagesbyMonth.IRSOutages, Null AS Gate, 0 AS Occurances, 0 AS Computation
FROM (qrySelectDates LEFT JOIN qryFailures ON qrySelectDates.MonthYear = qryFailures.MonthYear) LEFT JOIN qryIRSOutagesbyMonth ON qrySelectDates.MonthYear = qryIRSOutagesbyMonth.MonthYear
ORDER BY CInt(Mid([qrySelectDates].[monthyear],InStr([qrySelectDates].[monthyear],"/")+1,10)), Int((Mid([qrySelectDates].[monthyear],1,InStr([qrySelectDates].[monthyear],"/")-1)));