OK, this is my problem :
Table1 :
Table1ID (autonumber)
.
. lots of field - all kinds
.
.
Table2ID
Table2 :
Table2ID (autonumber)
.
. other fields - all kind
Query :
select table1ID, Table2ID ,..... from table1,table2 where table1.table2ID= table2.table2ID
(the link is also defined in the relationship (1 to many, enforece relational integrity - no cascades).
Now, if I open the query and delete a row from there - it works fine.
But if I write a delete query like so :
delete * from MyQuery where table1ID=123 and table2ID=456
then I get the error message "Could not delete from specified table".
In fact I tried to run this delete statement from a VB program. As I got this error I tried to run directly from Access (2000), and got the above results.
After reading access help I put in the properties of MyQuery "Unique records" to "Yes" - no effects.
Any ideas ?
Table1 :
Table1ID (autonumber)
.
. lots of field - all kinds
.
.
Table2ID
Table2 :
Table2ID (autonumber)
.
. other fields - all kind
Query :
select table1ID, Table2ID ,..... from table1,table2 where table1.table2ID= table2.table2ID
(the link is also defined in the relationship (1 to many, enforece relational integrity - no cascades).
Now, if I open the query and delete a row from there - it works fine.
But if I write a delete query like so :
delete * from MyQuery where table1ID=123 and table2ID=456
then I get the error message "Could not delete from specified table".
In fact I tried to run this delete statement from a VB program. As I got this error I tried to run directly from Access (2000), and got the above results.
After reading access help I put in the properties of MyQuery "Unique records" to "Yes" - no effects.
Any ideas ?