Hello, i keep getting this message "you tried to execute query that doesnt include specific expression ""....
everything looks fine but i dont understand why it is not averaging. I want to average the number of days late, everything else
heres a copy of the sql, pic is also attached. thanks!
SELECT qryPiece1.CHANNEL_ROOT_ID, Format([problem_report_event_dttm],"mm/dd/yyyy") AS [Event Date], qryPiece1.PROBLEM_REPORT_EVENT_TXT, qryPiece1.CycleDay, qryPiece1.LastReadDate, qryDay4Report_Piece2.[Due Date], Date()-[Due Date] AS [Days Late], Avg([Days Late]) AS Expr1
FROM qryDay4Report_Piece2 INNER JOIN qryPiece1 ON (qryDay4Report_Piece2.Month = qryPiece1.Month) AND (qryDay4Report_Piece2.Serial = qryPiece1.CycleDay)
WHERE (((qryPiece1.PROBLEM_REPORT_EVENT_TXT) Not Like "*sxv0*" And (qryPiece1.PROBLEM_REPORT_EVENT_TXT) Not Like "*byt2*" And (qryPiece1.PROBLEM_REPORT_EVENT_TXT) Not Like "*sef4*" And (qryPiece1.PROBLEM_REPORT_EVENT_TXT) Not Like "*jdbj*" And (qryPiece1.PROBLEM_REPORT_EVENT_TXT) Not Like "*gasg*") AND ((qryPiece1.LastReadDate)<[Due Date]) AND ((Date()-[Due Date])>=1));