When it beeps, look in the status bar. If it says something like "Recordset
is not updateable", then you have your answer. If the recordset is not
updateable, you can't delete records either. The main way that a recordset
based on a query of two joined tables can be non-updateable, is if the field
in the lookup table does not have a unique index. In a query with a
one-to-many join, the table on the "One" side MUST have a unique index on
the join field(or it should be the primary key).
Other things can cause a query to be non-updateable: Using the DISTINCT
predicate, making the query a "totals" (aggregate query), and so forth. If
you type "When can I update data from a query?" into the Answer Wizard in
help, you will find a list of reasons that can cause a query to be
non-updateable.
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L