The table is something like:
ProjectID (autonumber)
ProjectNum (text)
ProjectPhase (integer)
Let's say the data looks like this:
1- AccessTestDB - 1
2- AccessTestDB - 2
3- VBExport -1
I want to count the second column ProjectNum, not the total records. Below groups the projects and gives me a count per project.
qryProjectCount
SELECT ProjectNum, COUNT(ProjectNum) As ProjectCount
FROM tblProjects
GROUP BY ProjectNum;
So then I am having to write another query to count the groups.
SELECT Count(*) As ProjectCount
FROM qryProjectCount;
I would like to do all this in one query. I'm thinking it would involve a subquery but not sure. I haven't seen any examples of this but I am sure it is possible.