StarScream
Technical User
In a query (design view), I want to count how many times a specific field equals "Teacher" in a table. If there are no records with "Teacher", I want it to return a 0.
TABLE
[Country] [Name] [Job]
Canada John Teacher
Canada Pete Plumber
Canada Sara Teacher
Russia Ivan Singer
Russia Nicolae Electrician
QUERY
[Country] [Job] [Job]
Group By Group By Count
Sort Ascending ="Teacher"
RESULT
Canada Teacher 2
But I want it to return
Canada Teacher 2
Russia Teacher 0
I tried using NZ and the IIF(IsNull) and even DCOUNT.
Any ideas?
TABLE
[Country] [Name] [Job]
Canada John Teacher
Canada Pete Plumber
Canada Sara Teacher
Russia Ivan Singer
Russia Nicolae Electrician
QUERY
[Country] [Job] [Job]
Group By Group By Count
Sort Ascending ="Teacher"
RESULT
Canada Teacher 2
But I want it to return
Canada Teacher 2
Russia Teacher 0
I tried using NZ and the IIF(IsNull) and even DCOUNT.
Any ideas?