After playing with a few different queries, it seems the issue here is that
platted and paved are unique records, but by including them in the same
query, I am overlapping dates since they are unique values, which is
creating the problem. The count of plat dates and the count of pave dates
need to be independent of each other.
I have two tables. The first is the general information for a neighborhood
(name, location, number of lots, project manager). The second table
includes individual lot information (lot number; address; sales price; map,
book and page; and "critical" dates to include plat date, pave date, closing
date). One goal is to track lot development from the ground up. This query
and corresponding report would track an input date range to show how many
lots in a neighborhood have been platted and how many have been paved for
each month in that date range chosen. They are independent dates, but each
occurs to groups of lots at one time, but not necessarily identical lots.
The idea is to track the pipeline to determine when lots would be available
for sale and look at the trends of the development.
Does that help or is there anything else that can help to determine how to
run this? I have a simple query that works based on the formula you
provided that includes the neighborhood field from one table and PlatDate
and PaveDate from the other table using the formula. If I run the query, it
provides the summary information I need, but I am trying to translate that
into a report that will group these numbers by month. The problem is there
are two columns of grouped data that are driven by dates.
I almost think I need two separate queries for both platted and paved and
then join them to combine data based on one date so I have a number of
platted lots and a number of paved lots for the same date and then sort them
that way.
Thanks!
These are just key dates we track for each lot. When the municipality
plats
a section of lots, we note it in the lot table. When the roads are cut
through that section, the Plat Date is added. We are trying to check the
status of lots in a subdivision by tracking how many are platted and how
many are paved for a given month to see how inventory is developed. They
may pave lots before they are platted and or not all lots in a plat are
paved at the same time, so there are variances.
Maybe I am approaching this from the wrong direction. Does this help?
Since I don't have any clear idea how you're approaching this, I can
only guess that you are coming from the wrong direction!
You can count non-NULL dates for a given subdivision by setting the
Control Source of a report textbox (let's call it txtPlatted) to:
+DCount("*", "[yourtable]", "[Subdivision] = " & Me!subdivisionID & "
AND [Plat Date] IS NOT NULL")
using your appropriate table and field names of course. Do the same
for another textbox with the pave date field.
John W. Vinson[MVP]