S
SSharma
Guest
Hi,
I am totally frustrated with this and hope someone can help! I have a database with 3 tables -- Invoice, Inspector and Payments. The 3 tables are joined on a field called Invoice Number. The Invoice table is on the "one" side and the other two tables are on the "many" side of the relationship. I have also checked the "Enforce Referential Integrity" box and the "Cascade Delete Related Records" box.
I then created a Delete query with all three tables and set a parameter on the Invoice Number field of the Invoice table. What I want this query to do is to get the invoice number from the user and delete all records with this Invoice number from all 3 tables.
But, this does not happen. When I run the query, it gets the invoice number but then I get the message "could not delete from specified tables". No records are deleted from any table.
What am I doing wrong?!! I am fairly new to Access...I would much appreciate any help.
Seetha
I am totally frustrated with this and hope someone can help! I have a database with 3 tables -- Invoice, Inspector and Payments. The 3 tables are joined on a field called Invoice Number. The Invoice table is on the "one" side and the other two tables are on the "many" side of the relationship. I have also checked the "Enforce Referential Integrity" box and the "Cascade Delete Related Records" box.
I then created a Delete query with all three tables and set a parameter on the Invoice Number field of the Invoice table. What I want this query to do is to get the invoice number from the user and delete all records with this Invoice number from all 3 tables.
But, this does not happen. When I run the query, it gets the invoice number but then I get the message "could not delete from specified tables". No records are deleted from any table.
What am I doing wrong?!! I am fairly new to Access...I would much appreciate any help.
Seetha