I have two tables, "Counties" and "Cities", that list all of the counties and municipalities in a given U.S. state. The "Counties" table has fields "CountyName" (the name of the county, predictably) and "CountyPop" (its population). The "Cities" table has fields "City Name" (the name of the city), "County" (the county in which the city is located, populated through a lookup to [Counties]![CountyName]), and "CityPop" (the population of the city).
What I would like to do is determine for each county the population not residing in a city (the population of the county minus the total population of all cities within its borders). In other words, for each entry in [Counties]![CountyName], I want to subtract from [Counties]![CountyPop] the sum of [Cities]![CityPop] where [Cities]![County] equals [Counties]![CountyName]. Domain aggregate expressions don't work because the two values needed for the criteria are in different domains. I suspect the answer is in SQL, but I haven't reached that level yet.
Any help would be much appreciated.