Once again, i am stuck with a function.
Let me show a sample of the data then I'll go from there.
Date Room/Location ColonyCount
01/02/08 Compounding 0
01/03/08 Ointment 2
01/04/08 Compounding 3
01/05/08 Liquid 0
01/06/08 Compounding 1
What I want to do is, make a query, grouping them by room/location and finding out which colony count was more than 2, since that's a significant number.
So say at the end, with the above information I would want to ssee someting like
Room/Location # of Significant Count
Compounding 1
Ointment 0
Liquid 0
Compounding has one since one of its counts were 3.
I made a query like this:
But it says data type mismatch... and im not evne sure if thats the right way to go
Let me show a sample of the data then I'll go from there.
Date Room/Location ColonyCount
01/02/08 Compounding 0
01/03/08 Ointment 2
01/04/08 Compounding 3
01/05/08 Liquid 0
01/06/08 Compounding 1
What I want to do is, make a query, grouping them by room/location and finding out which colony count was more than 2, since that's a significant number.
So say at the end, with the above information I would want to ssee someting like
Room/Location # of Significant Count
Compounding 1
Ointment 0
Liquid 0
Compounding has one since one of its counts were 3.
I made a query like this:
Code:
SELECT [Rodac Plates (2008)].[Room/Location], (Count(IIf([Count]>2,1,0))) AS [# of Above Alert]
FROM [Rodac Plates (2008)] INNER JOIN [Rodac Plates] ON ([Rodac Plates (2008)].[Room/Location] = [Rodac Plates].[Room/Location]) AND ([Rodac Plates (2008)].Schedule = [Rodac Plates].Schedule) AND ([Rodac Plates (2008)].Date = [Rodac Plates].Date)
GROUP BY [Rodac Plates (2008)].[Room/Location]
HAVING ((([Rodac Plates (2008)].[Room/Location])="Compounding" Or ([Rodac Plates (2008)].[Room/Location])="Liquid" Or ([Rodac Plates (2008)].[Room/Location])="Ointment"));
But it says data type mismatch... and im not evne sure if thats the right way to go