
Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
You mean that I can have a select query which is updatable? Not sure I
understand that.
MAPPINGS_DISTINCT query is like that:
Select DISTINCT Make, MappMake from MAPPINGS
> The query statement looks okay, but you say that MAPPINGS_DISTINCT is a
> query? It it an updatable query? If not the query built on top of it will
[quoted text clipped - 23 lines]
> >
> > Thanks in advance!
Rick Brandt - 18 Jul 2006 12:40 GMT
> You mean that I can have a select query which is updatable? Not sure I
> understand that.
>
> MAPPINGS_DISTINCT query is like that:
>
> Select DISTINCT Make, MappMake from MAPPINGS
Access requires that ALL tables and queries in an Update query be editable in
their own right even if the update query is not trying to update fields in the
one that is not editable.
Since MAPPINGS_DISTINCT is not editable then your entire update query fails.
Using a sub-query or In(SELECT...) clause instead of a join can often work
around this issue.

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Allen Browne - 18 Jul 2006 13:15 GMT
A SELECT query can be updatable, e.g.:
SELECT * FROM Table1;
Your MAPPINGS_DISTINCT query is not updatable, because it uses the DISTINCT
keyword. Therefore, when you use that query as the source "table" for
another query, the upper level query is not updatable either.
Here's a list of things that may help you identify what will results in a
non-updatable query:
Why is my query read-only?
at:
http://allenbrowne.com/ser-61.html

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> You mean that I can have a select query which is updatable? Not sure I
> understand that.
[quoted text clipped - 25 lines]
>> >
>> > Thanks in advance!