As per your request here is the SQL statement. Also, I would like to see the
grand total. At the top of the report I get Individual totals when I run
them individually. So grand totals will be all that I need. One final
question when I tried to implement the Null, it gave me individual reports on
everyone instead of one report with total calls monitored. That is the only
piece I am missing. Please see SQL statement:
SELECT DISTINCTROW [New Monitor Query].EmployeeID, [New Monitor
Query].FirstName, [New Monitor Query].LastName, First([New Monitor
Query].Caller) AS FirstOfCaller, Count([New Monitor Query].RecordNumber) AS
CountOfRecordNumber, Sum([New Monitor Query].NoGreeting) AS SumOfNoGreeting,
Sum([New Monitor Query].NoListening1) AS SumOfNoListening1, Sum([New Monitor
Query].NoListening2) AS SumOfNoListening2, Sum([New Monitor
Query].NoListening3) AS SumOfNoListening3, Sum([New Monitor
Query].NoListening4) AS SumOfNoListening4, Sum([New Monitor
Query].NoListening5) AS SumOfNoListening5, Sum([New Monitor
Query].NoListening6) AS SumOfNoListening6, Sum([New Monitor
Query].NoSolutions1) AS SumOfNoSolutions1, Sum([New Monitor
Query].NoSolutions2) AS SumOfNoSolutions2, Sum([New Monitor
Query].NoSolutions3) AS SumOfNoSolutions3, Sum([New Monitor
Query].NoSolutions4) AS SumOfNoSolutions4, Sum([New Monitor
Query].NoSolutions5) AS SumOfNoSolutions5, Sum([New Monitor
Query].[NoRequired Xfer]) AS [SumOfNoRequired Xfer], Sum([New Monitor
Query].[NoFollow Xfer proc]) AS [SumOfNoFollow Xfer proc], Sum([New Monitor
Query].NoSolutions6) AS SumOfNoSolutions6, Sum([New Monitor
Query].NoSolutions7) AS SumOfNoSolutions7, Sum([New Monitor Query].NoProf1)
AS SumOfNoProf1, Sum([New Monitor Query].NoProf2) AS SumOfNoProf2, Sum([New
Monitor Query].NoProf3) AS SumOfNoProf3, Sum([New Monitor Query].NoClosing)
AS SumOfNoClosing
FROM [New Monitor Query]
WHERE ((([New Monitor Query].MonitorDate)>=[Forms]![Quality Intro]![Start
Date?] And ([New Monitor Query].MonitorDate)<=[Forms]![Quality Intro]![End
Date?]))
GROUP BY [New Monitor Query].EmployeeID, [New Monitor Query].FirstName, [New
Monitor Query].LastName
HAVING ((([New Monitor Query].EmployeeID)=[Forms]![Quality
Intro]![Combo119])) OR ((([Forms]![Quality Intro]![Combo119]) Is Null));
John W. Vinson said:
Many apologies John, I did not mean to imply that you guys had to stop
everything you where doing to help me. I am very grateful for the
assistance. You are right, I do realize that I should not be trying to sum
the employeeID. I am actually trying to do total calculations on the Calls
Monitored. I have totaling for individuals thanks to your help. Now I would
like it for the entire call center. so should it look like this:
=[Forms]![Quality Intro]![Combo119] OR [Forms]![Quality Intro]![Combo119] IS
NULL
and for the totals =Sum([CallsMonitored]). Again I sincerely apologize if I
sounded pushy, and thank you for all your help.
Again...
Please open your Query in design view.
On the menu select View... SQL.
Copy and paste the SQL text of the query to a message here.
That will contain the information about what you're doing, so I'll have a
chance to see what you're doing wrong.
One question; do you want to see each individual total, *and also* the grand
total, on the same report? If so, you'll be better off doing it on the report
(with a group footer and a form footer for the individual and grand totals
respectively). You can't have two levels of totals in a Query without getting
into some pretty complex queries.
John W. Vinson [MVP]