Carrie
Active Member
- Joined
- Nov 20, 2002
- Messages
- 418
Here is the SQL I have so far.
SELECT [Qry - First Inbound Activity <=15 Min from Open].[Functional Sub Area], [Qry - First Inbound Activity <=15 Min from Open].[SR #], [Qry - First Inbound Activity <=15 Min from Open].[Agent Opened Date], [Qry - First Inbound Activity <=15 Min from Open]!FirstOfCreated<[Qry - Outbound Activities]!Created AS [Outbound after First Inbound], [Qry - Outbound Activities].[Agent Closed Date], [Qry - Outbound Activities].Type
FROM ([Qry - First Inbound Activity <=15 Min from Open] INNER JOIN [Qry - Outbound Activities] ON [Qry - First Inbound Activity <=15 Min from Open].[SR #] = [Qry - Outbound Activities].[SR #]) INNER JOIN [Qry - First Inbound Activity <=15 Min from Open] AS [Qry - First Inbound Activity <=15 Min from Open_1] ON [Qry - Outbound Activities].[SR #] = [Qry - First Inbound Activity <=15 Min from Open_1].[SR #]
GROUP BY [Qry - First Inbound Activity <=15 Min from Open].[Functional Sub Area], [Qry - First Inbound Activity <=15 Min from Open].[SR #], [Qry - First Inbound Activity <=15 Min from Open].[Agent Opened Date], [Qry - Outbound Activities].[Agent Closed Date], [Qry - Outbound Activities].Type;
The problem is with the Field named: Outbound after first Inbound.
All I need is for the data to show if the Created field from the table Qry - Outbound is greater than the First of Created field from the Qry - First Inbound Activity <=15 Min from Open table (both tables are actually queries as indicated by the Qry).
I have that in here as:
Outbound after First Inbound: [Qry - First Inbound Activity <=15 Min from Open]!FirstOfCreated<[Qry - Outbound Activities]!Created
When I run it I get the error:
You tried to execute a query that does not inclued the specified expression '[Qry - First Inbound Activity <=15 Min from Open]!FirstOfCreated<[Qry - Outbound Activities]!Created' as part of an aggregate function.
Please help, I am an Access dummy but am trying to learn with the help files. I have been working on this one project for four days and am stuck here.

SELECT [Qry - First Inbound Activity <=15 Min from Open].[Functional Sub Area], [Qry - First Inbound Activity <=15 Min from Open].[SR #], [Qry - First Inbound Activity <=15 Min from Open].[Agent Opened Date], [Qry - First Inbound Activity <=15 Min from Open]!FirstOfCreated<[Qry - Outbound Activities]!Created AS [Outbound after First Inbound], [Qry - Outbound Activities].[Agent Closed Date], [Qry - Outbound Activities].Type
FROM ([Qry - First Inbound Activity <=15 Min from Open] INNER JOIN [Qry - Outbound Activities] ON [Qry - First Inbound Activity <=15 Min from Open].[SR #] = [Qry - Outbound Activities].[SR #]) INNER JOIN [Qry - First Inbound Activity <=15 Min from Open] AS [Qry - First Inbound Activity <=15 Min from Open_1] ON [Qry - Outbound Activities].[SR #] = [Qry - First Inbound Activity <=15 Min from Open_1].[SR #]
GROUP BY [Qry - First Inbound Activity <=15 Min from Open].[Functional Sub Area], [Qry - First Inbound Activity <=15 Min from Open].[SR #], [Qry - First Inbound Activity <=15 Min from Open].[Agent Opened Date], [Qry - Outbound Activities].[Agent Closed Date], [Qry - Outbound Activities].Type;
The problem is with the Field named: Outbound after first Inbound.
All I need is for the data to show if the Created field from the table Qry - Outbound is greater than the First of Created field from the Qry - First Inbound Activity <=15 Min from Open table (both tables are actually queries as indicated by the Qry).
I have that in here as:
Outbound after First Inbound: [Qry - First Inbound Activity <=15 Min from Open]!FirstOfCreated<[Qry - Outbound Activities]!Created
When I run it I get the error:
You tried to execute a query that does not inclued the specified expression '[Qry - First Inbound Activity <=15 Min from Open]!FirstOfCreated<[Qry - Outbound Activities]!Created' as part of an aggregate function.
Please help, I am an Access dummy but am trying to learn with the help files. I have been working on this one project for four days and am stuck here.
