HI,
I am trying to get this query to count all emails that were answered outside of SLA, the query should get the date to check from a form and then check all dates received for the date and then count how many have an AHT >720 or dateclosed is blank, but it doesnt work, can someone advise what is wrong. thanks
SELECT tblItemReceived.DateLogged, tblItemReceived.ITemAHT, tblItemReceived.DateClosed
FROM tblItemReceived
GROUP BY tblItemReceived.DateLogged, tblItemReceived.ITemAHT, tblItemReceived.DateClosed
HAVING (((tblItemReceived.DateLogged)=[Forms]![frmReporting]![txtfromdate]) AND ((tblItemReceived.ITemAHT)>720) AND ((tblItemReceived.DateClosed) Is Null Or (tblItemReceived.DateClosed)>[Forms]![frmReporting]![txtfromdate] Or ([tblItemReceived].[DateClosed])=""));
Hope this is of use, Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
I am trying to get this query to count all emails that were answered outside of SLA, the query should get the date to check from a form and then check all dates received for the date and then count how many have an AHT >720 or dateclosed is blank, but it doesnt work, can someone advise what is wrong. thanks
SELECT tblItemReceived.DateLogged, tblItemReceived.ITemAHT, tblItemReceived.DateClosed
FROM tblItemReceived
GROUP BY tblItemReceived.DateLogged, tblItemReceived.ITemAHT, tblItemReceived.DateClosed
HAVING (((tblItemReceived.DateLogged)=[Forms]![frmReporting]![txtfromdate]) AND ((tblItemReceived.ITemAHT)>720) AND ((tblItemReceived.DateClosed) Is Null Or (tblItemReceived.DateClosed)>[Forms]![frmReporting]![txtfromdate] Or ([tblItemReceived].[DateClosed])=""));
Hope this is of use, Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)