Dear Jonah:
DISTINCT will eliminate all but one row from a set of rows in which all the
columns are identical.
Now, when you create INNER JOINs, and when you have subsidiary tables in
that join that have multiple rows, the query must show a row of results for
every row in the subsidiary table that meets the JOIN requirements.
I believe your expectations are unrealistic. Given that the query must show
the data in every row from every JOINed table that meets the JOIN
requirements, how could you expect anything else. The values the "parent"
table's columns must be repeated for each different subsidiary table's rows
that relate to it.
If you want only one row from the parent table, and there are multiple child
table rows for that row, you must supply the conditions that filter out all
but one of the child table rows. The query engine will not arbitrarily
remove all but one for you.
If you want to supply a basis on which to limit the child tables to one row
each, we can likely proceed.
Tom Ellison
>I have a query that works with one problem, the query searches tables
> that have a relationship with the orps data table. a couple of the
[quoted text clipped - 24 lines]
> "*"))
> ORDER BY [ORPS Data].Discovery_Date;
papa jonah - 23 Nov 2005 20:33 GMT
Thanks for giving an explanation for me to build on. I really
appreciate it.
To make sure that I am properly understanding you, if I ask the query
to show each of the child table results, I should expect the multiple
listing of the parent table.
However, if I limit the display of child table stuff, I can expect to
limit the parent table data to one row per record?
That seems to work.
With your well-phrased (based on my level of stupid with Access)
explanation, I think I understand why it wasn't working like I thought
it should.
THANK YOU VERY MUCH!!
Tom Ellison - 23 Nov 2005 20:43 GMT
Dear Jonah:
It seems you have the correct understanding now. I'm glad for any help you
received.
Tom Ellison
> Thanks for giving an explanation for me to build on. I really
> appreciate it.
[quoted text clipped - 10 lines]
>
> THANK YOU VERY MUCH!!