I think I got it to work.
SELECT [LastName] & ", " & [FirstName] AS [Full Name],
Contacts.StatusJuly, Count(Contacts.StatusJuly) AS CountOfStatusJuly,
Count(Calls.Completed) AS CountOfCompleted, Contacts.ContactTypeID,
Contacts.[Assigned Monitor]
FROM Contacts LEFT JOIN Calls ON Contacts.ContactID=Calls.ContactID
GROUP BY [LastName] & ", " & [FirstName], Contacts.StatusJuly,
Contacts.ContactTypeID, Contacts.[Assigned Monitor]
HAVING (((Count(Calls.Completed))<4 And [StatusJuly]="Normal")) OR
(((Count(Calls.Completed))<8 And [StatusJuly]="New")) OR
(((Count(Calls.Completed))<8 And [StatusJuly]="At Risk"));
StatusJuly is a field in the query.
David
Duane said:
Where did the status field come from? Is this stored some where or does a
user select it on a form?
Please provide complete specifications. Some sample records sometimes
helps.
Also table structures...
--
Duane Hookom
MS Access MVP
Yes I did that, but I want to be able to not show the record based on
three different values.
If Status is Normal <4
If Status is New <8
If Status is At Risk <8
I can get it to work with only one, but not all three.
David
Duane Hookom wrote:
Can you create a totals query that groups by FullName and Counts
FullName.
Add this query to your report's record source and set the criteria
under
Count Of FullName to
<4
--
Duane Hookom
MS Access MVP
I have a list of records which I group by [FullName].
If the records associted with the same [FullName] equals 4 or
greater
then I do not want that record to show on the report.
I have tried not showing them on format with If/Then, but have had
no
luck. Is this possible?
Thanks,
David