G
Guest
I am trying to do a count query on multiple check boxes that have been
checked. In a SUM query, the result is a negative number and I cannot used
that.
Ok, this SQL Statement works fine:
SELECT COUNT(Calls.[Vent Free]) AS Vent_Free
FROM Calls
WHERE (((Calls.Date) Between [Enter Start Date] And [Enter Ending Date]))
And Calls.[Vent Free]=True;
But when I try to add a second part to it I get a result of 0 for the result
of the two parts:
SELECT Count(Calls.[Vent Free]) AS [Vent Free], Count(Calls.Vented) AS Vented
FROM Calls
WHERE (((Calls.[Vent Free])=True) AND ((Calls.Vented)=True) AND
((Calls.Date) Between [Enter Start Date] And [Enter Ending Date]));
checked. In a SUM query, the result is a negative number and I cannot used
that.
Ok, this SQL Statement works fine:
SELECT COUNT(Calls.[Vent Free]) AS Vent_Free
FROM Calls
WHERE (((Calls.Date) Between [Enter Start Date] And [Enter Ending Date]))
And Calls.[Vent Free]=True;
But when I try to add a second part to it I get a result of 0 for the result
of the two parts:
SELECT Count(Calls.[Vent Free]) AS [Vent Free], Count(Calls.Vented) AS Vented
FROM Calls
WHERE (((Calls.[Vent Free])=True) AND ((Calls.Vented)=True) AND
((Calls.Date) Between [Enter Start Date] And [Enter Ending Date]));