Could not delete from specified table

G

Guest

I have a delete query where by I am trying to delete records in one table
where similar records (an equals join) exist in another table.

When I preview the delete query it shows the records that should delete,
however when I actually run the query I get the messsage "Could not delete
from specified table".

There are no relationships between the two tables. Both tables only contain
two fields and are similar types (ie number, long integer and text).
 
J

John Vinson

I have a delete query where by I am trying to delete records in one table
where similar records (an equals join) exist in another table.

When I preview the delete query it shows the records that should delete,
however when I actually run the query I get the messsage "Could not delete
from specified table".

There are no relationships between the two tables. Both tables only contain
two fields and are similar types (ie number, long integer and text).

If there are no relationships, there are (probably) no indexes on the
joining fields. For a query to be updateable, you must have a unique
Index in the joining field in the "one" side table.

A Subquery might be a way around this; could you post the SQL of the
query?

John W. Vinson[MVP]
 

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