I am having trouble with a query returnig a 0 when there is a null. I have a Q_count-Single:
SELECT Tbl_Fundraiser.Campaign, Count(Tbl_Fundraiser.[Fund Type]) AS SngCount, Tbl_Fundraiser.[Fund Type]
FROM Tbl_Fundraiser
GROUP BY Tbl_Fundraiser.Campaign, Tbl_Fundraiser.[Fund Type]
HAVING (((Tbl_Fundraiser.Campaign)="10" AND ((Tbl_Fundraiser.[Fund Type])="single");
... But the value is null, there is none with my criteria.
I've tried this:
Insp Count: IIf(IsNull([InspCount]),"0",[InspCount])
or
IIf(nz([InspCount]),"0",[InspCount])
or
Count: Nz([InspCount])
I've done this in the same query and tried to create a seperate query that pulls the null info and I never get a thing. Can anyone help? Thanks!
SELECT Tbl_Fundraiser.Campaign, Count(Tbl_Fundraiser.[Fund Type]) AS SngCount, Tbl_Fundraiser.[Fund Type]
FROM Tbl_Fundraiser
GROUP BY Tbl_Fundraiser.Campaign, Tbl_Fundraiser.[Fund Type]
HAVING (((Tbl_Fundraiser.Campaign)="10" AND ((Tbl_Fundraiser.[Fund Type])="single");
... But the value is null, there is none with my criteria.
I've tried this:
Insp Count: IIf(IsNull([InspCount]),"0",[InspCount])
or
IIf(nz([InspCount]),"0",[InspCount])
or
Count: Nz([InspCount])
I've done this in the same query and tried to create a seperate query that pulls the null info and I never get a thing. Can anyone help? Thanks!