i have connected two queries i get this error
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)
this is the sql view of error query ( final1)
SELECT imtemasterqry.[New No], imtemasterqry.RegDate, imtemasterqry.IMTENAME, imtemasterqry.IMTENUMBER, imtemasterqry.SHOP, imtemasterqry.PLANT, imtemasterqry.mfgdate, imtemasterqry.FREQ, imtemasterqry.monthofcal, imtemasterqry.STATUS, imtemasterqry.REMARKS, imtemasterqry.DUMMY4, imtemasterqry.damar, imtemasterqry.nuber, imtemasterqry.TOTMON, imtemasterqry.divf, imtemasterqry.divf1, imtemasterqry.addd, imtemasterqry.mfg, imtemasterqry.SYSNEXTDUEDATE, imtemasterqry.pp, imtemasterqry.NewDateField, IIf([STATUSCER]="ok",1,0) AS OK_Count, IIf([STATUSCER]="ng",1,0) AS ng_Count, IIf([STATUSCER]="pending",1,0) AS pending_Count, IIf([STATUSCER]="BREAK DOWN",1,0) AS [BREAK DOWN_Count], IIf([STATUSCER]="MISSING",1,0) AS MISSING_Count, IIf(IsNull([statuscer]),1,0) AS blank_count, IIf([STATUSCER]="scrap",1,0) AS scrap_Count, IIf([NEXTCALDUEDATE]=[SYSNEXTDUEDATE],1,0) AS duecheck, imtemasterqry.monthofcal AS Mymonth
FROM imtemasterqry LEFT JOIN calibcertiqry ON (imtemasterqry.IMTENUMBER = calibcertiqry.IMTENUMBER) AND (imtemasterqry.allformula1 = calibcertiqry.formatfor1);
this is the sql view of working query ( final)
SELECT imtemasterqry.[New No], imtemasterqry.RegDate, imtemasterqry.IMTENAME, imtemasterqry.IMTENUMBER, imtemasterqry.SHOP, imtemasterqry.PLANT, imtemasterqry.mfgdate, imtemasterqry.FREQ, imtemasterqry.monthofcal, imtemasterqry.STATUS, imtemasterqry.REMARKS, imtemasterqry.DUMMY4, imtemasterqry.damar, imtemasterqry.nuber, imtemasterqry.TOTMON, imtemasterqry.divf, imtemasterqry.divf1, imtemasterqry.addd, imtemasterqry.mfg, imtemasterqry.SYSNEXTDUEDATE, imtemasterqry.pp, imtemasterqry.NewDateField, IIf([STATUSCER]="ok",1,0) AS OK_Count, IIf([STATUSCER]="ng",1,0) AS ng_Count, IIf([STATUSCER]="pending",1,0) AS pending_Count, IIf([STATUSCER]="BREAK DOWN",1,0) AS [BREAK DOWN_Count], IIf([STATUSCER]="MISSING",1,0) AS MISSING_Count, IIf(IsNull([statuscer]),1,0) AS blank_count, IIf([STATUSCER]="scrap",1,0) AS scrap_Count, IIf([NEXTCALDUEDATE]=[SYSNEXTDUEDATE],1,0) AS duecheck, imtemasterqry.monthofcal AS Mymonth
FROM imtemasterqry LEFT JOIN calibcertiqry ON (imtemasterqry.IMTENUMBER = calibcertiqry.IMTENUMBER) AND (imtemasterqry.allformula = calibcertiqry.formatfor);
name of the query is final and final1
i want both the query to work can you help in correcting or finding the error
so that i can put that result in one query to take report
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)
this is the sql view of error query ( final1)
SELECT imtemasterqry.[New No], imtemasterqry.RegDate, imtemasterqry.IMTENAME, imtemasterqry.IMTENUMBER, imtemasterqry.SHOP, imtemasterqry.PLANT, imtemasterqry.mfgdate, imtemasterqry.FREQ, imtemasterqry.monthofcal, imtemasterqry.STATUS, imtemasterqry.REMARKS, imtemasterqry.DUMMY4, imtemasterqry.damar, imtemasterqry.nuber, imtemasterqry.TOTMON, imtemasterqry.divf, imtemasterqry.divf1, imtemasterqry.addd, imtemasterqry.mfg, imtemasterqry.SYSNEXTDUEDATE, imtemasterqry.pp, imtemasterqry.NewDateField, IIf([STATUSCER]="ok",1,0) AS OK_Count, IIf([STATUSCER]="ng",1,0) AS ng_Count, IIf([STATUSCER]="pending",1,0) AS pending_Count, IIf([STATUSCER]="BREAK DOWN",1,0) AS [BREAK DOWN_Count], IIf([STATUSCER]="MISSING",1,0) AS MISSING_Count, IIf(IsNull([statuscer]),1,0) AS blank_count, IIf([STATUSCER]="scrap",1,0) AS scrap_Count, IIf([NEXTCALDUEDATE]=[SYSNEXTDUEDATE],1,0) AS duecheck, imtemasterqry.monthofcal AS Mymonth
FROM imtemasterqry LEFT JOIN calibcertiqry ON (imtemasterqry.IMTENUMBER = calibcertiqry.IMTENUMBER) AND (imtemasterqry.allformula1 = calibcertiqry.formatfor1);
this is the sql view of working query ( final)
SELECT imtemasterqry.[New No], imtemasterqry.RegDate, imtemasterqry.IMTENAME, imtemasterqry.IMTENUMBER, imtemasterqry.SHOP, imtemasterqry.PLANT, imtemasterqry.mfgdate, imtemasterqry.FREQ, imtemasterqry.monthofcal, imtemasterqry.STATUS, imtemasterqry.REMARKS, imtemasterqry.DUMMY4, imtemasterqry.damar, imtemasterqry.nuber, imtemasterqry.TOTMON, imtemasterqry.divf, imtemasterqry.divf1, imtemasterqry.addd, imtemasterqry.mfg, imtemasterqry.SYSNEXTDUEDATE, imtemasterqry.pp, imtemasterqry.NewDateField, IIf([STATUSCER]="ok",1,0) AS OK_Count, IIf([STATUSCER]="ng",1,0) AS ng_Count, IIf([STATUSCER]="pending",1,0) AS pending_Count, IIf([STATUSCER]="BREAK DOWN",1,0) AS [BREAK DOWN_Count], IIf([STATUSCER]="MISSING",1,0) AS MISSING_Count, IIf(IsNull([statuscer]),1,0) AS blank_count, IIf([STATUSCER]="scrap",1,0) AS scrap_Count, IIf([NEXTCALDUEDATE]=[SYSNEXTDUEDATE],1,0) AS duecheck, imtemasterqry.monthofcal AS Mymonth
FROM imtemasterqry LEFT JOIN calibcertiqry ON (imtemasterqry.IMTENUMBER = calibcertiqry.IMTENUMBER) AND (imtemasterqry.allformula = calibcertiqry.formatfor);
name of the query is final and final1
i want both the query to work can you help in correcting or finding the error
so that i can put that result in one query to take report