Updatable query

G

GeorgeMar

I know that having a query with two related tables is not
always updatable. But sometimes it does allow you to
update such a query.

Is there an easy way to determine when the query is or is
not updatable?

many thanks
george
 
J

John Vinson

I know that having a query with two related tables is not
always updatable. But sometimes it does allow you to
update such a query.

Is there an easy way to determine when the query is or is
not updatable?

If the help message that explained this rather nicely in Access97 help
is still available, I can't find it. Grrrr....

Some issues that can prevent updateability:

- A joined query must have a unique Index (such as a Primary Key) on
the "one" side joining field, and a nonunique Index on the foreign
key. Defining a relationship will create such an index so don't do it
twice.

- Any Totals operation - Group By, Count, Sum, etc. - anywhere in a
Query will block updating.

- Setting the query's Unique Values property (SELECT DISTINCT in SQL)
will block updating.

- Union queries or Crosstab queries can never be updateable.
 
G

GeorgeMar

Thank you John
-----Original Message-----


If the help message that explained this rather nicely in Access97 help
is still available, I can't find it. Grrrr....

Some issues that can prevent updateability:

- A joined query must have a unique Index (such as a Primary Key) on
the "one" side joining field, and a nonunique Index on the foreign
key. Defining a relationship will create such an index so don't do it
twice.

- Any Totals operation - Group By, Count, Sum, etc. - anywhere in a
Query will block updating.

- Setting the query's Unique Values property (SELECT DISTINCT in SQL)
will block updating.

- Union queries or Crosstab queries can never be updateable.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top