Hi all,
I have a query where I want to list all of my processes and the number of completed tests per process. If no tests have been completed, I want the process to be listed with a zero in the column on number of tests completed. My query so far:
As you can see, I attempted to use the Nz function to get zeros instead of Nulls but that did not work. I think the issue is the fact that the table value in the TestCompleted field defaults to No (as opposed to Null or empty) when a test is not completed.
Any ideas?
I have a query where I want to list all of my processes and the number of completed tests per process. If no tests have been completed, I want the process to be listed with a zero in the column on number of tests completed. My query so far:
Code:
SELECT tblScopeProcess.Process, Nz(Count(tblTestPlan1.ControlID),0) AS CountOfCompleteTests
FROM (tblControlDesign RIGHT JOIN tblScopeProcess ON tblControlDesign.Process = tblScopeProcess.ScopeProcessID) LEFT JOIN tblTestPlan1 ON tblControlDesign.ControlID = tblTestPlan1.ControlID
WHERE (((tblTestPlan1.TestCompleted)=Yes))
GROUP BY tblScopeProcess.Process;
As you can see, I attempted to use the Nz function to get zeros instead of Nulls but that did not work. I think the issue is the fact that the table value in the TestCompleted field defaults to No (as opposed to Null or empty) when a test is not completed.
Any ideas?