Good afternoon,
I am trying to duplicate a count query into a DCount as I want to show this inside an existing query without having to do a join etc...
Is this possible as when I try the following I get an error in the "HANDELED" part. I am trying to count how many times the AgentID would show on the same date as the CDate field
The error I am getting is "The Microsoft Access database engine cannot find the input table or query 'Handled'. Make sure it exists and that its spelled correctly.
SQL Code that works
thanks in advance
I am trying to duplicate a count query into a DCount as I want to show this inside an existing query without having to do a join etc...
Is this possible as when I try the following I get an error in the "HANDELED" part. I am trying to count how many times the AgentID would show on the same date as the CDate field
The error I am getting is "The Microsoft Access database engine cannot find the input table or query 'Handled'. Make sure it exists and that its spelled correctly.
Code:
Call Inbound: DCount([AgentID],[CallReason1])='"Handled"' AND [Call Type])<>'"Check1"' Or [Call Type] = '"Check2"' AND [Peripheral Call Type] = '"Check3"')
SQL Code that works
Code:
SELECT [CDate], [AgentID], Count(BusinessLendingAllCallData.[Agent Peripheral Number]) AS [CountOfAgentID]
FROM Table
WHERE ((([CallReason1])="handled") AND (([CallType])<>"Check1" Or ([Call Type])<>"Check2"))
GROUP BY [CDate], [AgentID], [Call Type]
HAVING ((([Peripheral Call Type])="Check3"));
thanks in advance