I have an Access database that has a query in it that returns the following columns for property sales:
County
Month Sold
Price Range
Count of sales for county/month sold/price range group
It sums by county, month sold, and price range. Results look something like this:
Smith County August 2009 $0 to $150 3
Smith County August 2009 $150 to $200 6
Jones County August 2009 $300 to $350 2
Smith County Sept 2009 $0 to $150 1
Smith County Sept 2009 $150 to $200 2
Not all counties have listings for each month/price range.
The Access db includes a Price Range table; an earlier query links the price to the price range table to get the price range for each record. Then the summary query does the subtotaling (counting) off that query.
The price range table has the following groups:
$0 to $150
$150 to $200
$200 to $250
$250 to $300
$300 to $350
$350 to $400
Over $400
Here is my issue. I need the report to show a row for EACH price range for each county/month, even if there were no listings. It should say 0 if no listings for that county/month group.
So Smith County for August would have 7 rows - one for each price range. Based on the data shown above, only two of the price ranges would actually have values; the others should be 0.
I just don't know how to make something out of nothing. I tried linking together my summary query with the price range table, forcing it to select all records from the price range table. But somehow that doesn't give me any empty price ranges.
I'm out of ideas.
Thanks!
County
Month Sold
Price Range
Count of sales for county/month sold/price range group
It sums by county, month sold, and price range. Results look something like this:
Smith County August 2009 $0 to $150 3
Smith County August 2009 $150 to $200 6
Jones County August 2009 $300 to $350 2
Smith County Sept 2009 $0 to $150 1
Smith County Sept 2009 $150 to $200 2
Not all counties have listings for each month/price range.
The Access db includes a Price Range table; an earlier query links the price to the price range table to get the price range for each record. Then the summary query does the subtotaling (counting) off that query.
The price range table has the following groups:
$0 to $150
$150 to $200
$200 to $250
$250 to $300
$300 to $350
$350 to $400
Over $400
Here is my issue. I need the report to show a row for EACH price range for each county/month, even if there were no listings. It should say 0 if no listings for that county/month group.
So Smith County for August would have 7 rows - one for each price range. Based on the data shown above, only two of the price ranges would actually have values; the others should be 0.
I just don't know how to make something out of nothing. I tried linking together my summary query with the price range table, forcing it to select all records from the price range table. But somehow that doesn't give me any empty price ranges.
I'm out of ideas.
Thanks!