Would you be able to help me out with this error? I’m trying to get the tblOutOfOffice (“Subject”) to pull (if subject,subject,0). It’s not doing it when I add in the parameters for that date. It’s only pulling the people out of office and not showing those who should be “0”
PARAMETERS [Start Date] DateTime;
SELECT tblPairings.NamePairingsList, tblPairings.Territory, tblPairings.Title, Sum(qryTouches.[CountOfCreated By]) AS Touches, Sum(qryHVTouches.[CountOfCreated By]) AS HVTouches, Round(Sum([Talk Time]),2) AS [Daily Talk Time], Round(Sum([Inbound Time]),2) AS [Daily Inbound Time], Round(Sum([Outbound Time]),2) AS [Daily Outbound Time], Round(Sum([Queue Time]),2) AS [Daily Queue Time], Sum(qryAvaya.[ACD Calls]) AS [Queue Calls], Nz(Sum([tblOutOfOffice]![Subject]),0) AS Subject
FROM (((tblPairings LEFT JOIN qryHVTouches ON tblPairings.NamePairingsList = qryHVTouches.[Created By]) LEFT JOIN qryTouches ON tblPairings.NamePairingsList = qryTouches.[Created By]) LEFT JOIN qryAvaya ON tblPairings.NamePairingsList = qryAvaya.NamePairingsList) LEFT JOIN tblOutOfOffice ON tblPairings.NamePairingsList = tblOutOfOffice.Assigned
WHERE (((qryHVTouches.Date)=[Start Date]) AND ((qryTouches.Date)=[Start Date]) AND ((qryAvaya.Date)=[Start Date]) AND ((tblOutOfOffice.Date)=[Start Date]))
GROUP BY tblPairings.NamePairingsList, tblPairings.Territory, tblPairings.Title;
Thank you!
PARAMETERS [Start Date] DateTime;
SELECT tblPairings.NamePairingsList, tblPairings.Territory, tblPairings.Title, Sum(qryTouches.[CountOfCreated By]) AS Touches, Sum(qryHVTouches.[CountOfCreated By]) AS HVTouches, Round(Sum([Talk Time]),2) AS [Daily Talk Time], Round(Sum([Inbound Time]),2) AS [Daily Inbound Time], Round(Sum([Outbound Time]),2) AS [Daily Outbound Time], Round(Sum([Queue Time]),2) AS [Daily Queue Time], Sum(qryAvaya.[ACD Calls]) AS [Queue Calls], Nz(Sum([tblOutOfOffice]![Subject]),0) AS Subject
FROM (((tblPairings LEFT JOIN qryHVTouches ON tblPairings.NamePairingsList = qryHVTouches.[Created By]) LEFT JOIN qryTouches ON tblPairings.NamePairingsList = qryTouches.[Created By]) LEFT JOIN qryAvaya ON tblPairings.NamePairingsList = qryAvaya.NamePairingsList) LEFT JOIN tblOutOfOffice ON tblPairings.NamePairingsList = tblOutOfOffice.Assigned
WHERE (((qryHVTouches.Date)=[Start Date]) AND ((qryTouches.Date)=[Start Date]) AND ((qryAvaya.Date)=[Start Date]) AND ((tblOutOfOffice.Date)=[Start Date]))
GROUP BY tblPairings.NamePairingsList, tblPairings.Territory, tblPairings.Title;
Thank you!