Bill said:
Hi Dirk,
I'm not sure how to explain the situation, but
I'll try.
The query, I assume you looked at the SQL view
of the query, contains two tables. The first table
has in each of its records a key-value to records
in the second table. Theoretically, there could be
an infinite number of records in the second table
which contain that key-value. That being the case,
the question arises as to which record in the 2nd
table would be the expected recipient of any
updates.
The HELP text specifies that there is no solution
when such a query is created.
Would you mind identifying and quoting the HELP text you're referring to?
Either it's flat wrong, or you've extrapolated from a special case to a
general one, or maybe you're not talking about a Jet database. But see the
help text entry from Access 2003 on "When can I update data from a query",
viewable at this link:
http://office.microsoft.com/assistance/hfws.aspx?AssetID=HP051880011033
It identifies among other things specific conditions under which you might
not be able to update data in a query that joins tables in a one-to-many
relationship. But this implies that these are exceptional conditions, and I
can attest from experiment that they are.
Does each of your tables have a primary key? Is the join field indexed in
both tables? These are things I could imagine affecting the updatability of
the query. Unless these aren't Jet tables, there's got to be something
about the tables' design or the query itself that is keeping the query from
being updatable, but it isn't just the fact that the query involves a
one-to-many relationship.
Hmm, I see that back on the 7th, George Nicholson pointed out an an oddity
in your SQL:
(quoting George Nicholson's post):
For whatever reason, the above clause looks pretty redundant (ANDing an
identical condition).
Change it to
INNER JOIN Registry
ON (Families.FamilyID = Registry.FamilyID)
WHERE...
and see if the query becomes editable again. Might not, but it won't hurt
anything to try.
I think he hit the nail on the head. I just took an updatable join of
tables in a one-to-many relationship, doubled up the join condition like
that, and it suddenly became nonupdatable. Did you ever try his suggested
fix?