K
KarenTheQA
I am trying to force zeros for null values using Nz, but it is not working in
the instance below. If a physician has no data to be counted, then his name
does not appear in the query result. I want to see the physician name with a
count of zero in the result.
SELECT [HTN Data 2004-5].[PCP Last Name], Nz(Count([HTN Data 2004-5].[PCP
Last Name])) AS [CountOfPCP Last Name]
FROM [HTN Data 2004-5]
WHERE ((([HTN Data 2004-5].[Latest PCP Visit Date]) Is Not Null))
GROUP BY [HTN Data 2004-5].[PCP Last Name]
ORDER BY [HTN Data 2004-5].[PCP Last Name];
Any help would be appreciated. Thank you!
the instance below. If a physician has no data to be counted, then his name
does not appear in the query result. I want to see the physician name with a
count of zero in the result.
SELECT [HTN Data 2004-5].[PCP Last Name], Nz(Count([HTN Data 2004-5].[PCP
Last Name])) AS [CountOfPCP Last Name]
FROM [HTN Data 2004-5]
WHERE ((([HTN Data 2004-5].[Latest PCP Visit Date]) Is Not Null))
GROUP BY [HTN Data 2004-5].[PCP Last Name]
ORDER BY [HTN Data 2004-5].[PCP Last Name];
Any help would be appreciated. Thank you!