All,
this query is gathering info from a couple of sources, the DateClosed field is formatted as general date and the Dates field is formatted as short date, how can I get the query to find the data in the tblauxdaily without altering the field formats, as I believe this is what is stopping email and faxing figures from appearing for the days where that agent did work within the date range.
Any help greatly appreciated as always.
Rob.
Hope this is of use, Rob.![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)
Code:
SELECT tblAgentList.AgentName, tblMailItems.ClosedBY, tblMailItems.ItemType, tblMailItems.Quantity, tblMailItems.CaseStatus, tblMailItems.DateLogged, tblMailItems.DateClosed, (DateDiff("n",[datelogged],[dateclosed])-GetSundays([DateLogged],[DateClosed])*1440) AS ahtITEMS, qryAgentEmailandFaxTime.Email, qryAgentEmailandFaxTime.Faxing
FROM qryAgentEmailandFaxTime RIGHT JOIN (tblMailItems LEFT JOIN tblAgentList ON tblMailItems.ClosedBY = tblAgentList.NTLogin) ON qryAgentEmailandFaxTime.Dates = tblMailItems.DateClosed
WHERE (((tblAgentList.AgentName)=[Forms]![frmReporting]![txtagentName]) AND ((tblMailItems.DateClosed) Between [Forms]![frmReporting]![BeginningDate] And [Forms]![frmReporting]![EndingDate]));
this query is gathering info from a couple of sources, the DateClosed field is formatted as general date and the Dates field is formatted as short date, how can I get the query to find the data in the tblauxdaily without altering the field formats, as I believe this is what is stopping email and faxing figures from appearing for the days where that agent did work within the date range.
Any help greatly appreciated as always.
Rob.
Hope this is of use, Rob.
![[yoda] [yoda] [yoda]](/data/assets/smilies/yoda.gif)