G
Guest
I'm trying to do a count in a table where the ID field has many entries per
ID. I undersatnd that I need to use DISTINCT in my query, but its not working
properly. I just want to return the count, nothing else. Can someone help?
SELECT DISTINCT Count(dbo_Data.ID) AS CountOfID
FROM dbo_Data
GROUP BY dbo_Data.DateTime
HAVING (((dbo_Data.DateTime)=[Forms]![frmCountReports]![txtstartdate] And
(dbo_Data.DateTime)=[Forms]![frmCountReports]![txtenddate]));
ID. I undersatnd that I need to use DISTINCT in my query, but its not working
properly. I just want to return the count, nothing else. Can someone help?
SELECT DISTINCT Count(dbo_Data.ID) AS CountOfID
FROM dbo_Data
GROUP BY dbo_Data.DateTime
HAVING (((dbo_Data.DateTime)=[Forms]![frmCountReports]![txtstartdate] And
(dbo_Data.DateTime)=[Forms]![frmCountReports]![txtenddate]));