How can I get the count of a GROUP BY SQL query?
SELECT Voter.*, temp100.YadiNo, temp100.CountHouseNo
FROM temp100
INNER JOIN Voter ON (temp100.HouseNo = Voter.HouseNo) AND (temp100.YadiNo = Voter.YadiNo)
WHERE (((temp100.YadiNo) Between " & txtpartno.Text.Trim & " And " & txtpartno1.Text.Trim & ")
AND ((temp100.CountHouseNo) Between " & txtfamilymeb.Text.Trim & " And " & txtfamilymeb1.Text.Trim & "))
ORDER BY voter.houseno
This means I has displayed group by house number. I want the count of this group of house numbers.