R
Rugby15ace
I have a crosstab query which basically count the different types of
inventory we have and their status. Sometimes the value will be null because
the inventory doesn't have any in a particular status. I want to be able to
place zeros where the null values occur. I've tried the Nz function, but it
gives me the error cannot have aggregate function in WHERE clause
(Count(Inventory.[TierID]). I am using 2007 Beta. Am I typing something
incorrectly? Any help would be appreciated. Thanks.
Alan
TRANSFORM Nz(Count(Inventory.[Tier ID]),0) AS [CountOfTier ID]
SELECT Inventory.Type, Count(Inventory.[Tier ID]) AS [Total Of Tier ID]
FROM Inventory
GROUP BY Inventory.Type
PIVOT Inventory.Status;
inventory we have and their status. Sometimes the value will be null because
the inventory doesn't have any in a particular status. I want to be able to
place zeros where the null values occur. I've tried the Nz function, but it
gives me the error cannot have aggregate function in WHERE clause
(Count(Inventory.[TierID]). I am using 2007 Beta. Am I typing something
incorrectly? Any help would be appreciated. Thanks.
Alan
TRANSFORM Nz(Count(Inventory.[Tier ID]),0) AS [CountOfTier ID]
SELECT Inventory.Type, Count(Inventory.[Tier ID]) AS [Total Of Tier ID]
FROM Inventory
GROUP BY Inventory.Type
PIVOT Inventory.Status;