Delte Record Query?

fenhow

Registered User.
Local time
Today, 11:13
Joined
Jul 21, 2004
Messages
599
Hi, I have two tables joined by PK. The form has Main and Sub. One Main can have many Subs.

I am trying to create a macro or Query that will delete a record the problem I am having is if i delete a record from table 1 (Main) the data in the table 2 (Sub) stays in the DB.

Can anyone tell me how to delete a record and the sub records at the same time?

Thanks.

Fen How
 
Do you have the cascade deletes set up in the relationships window?
 
No, should i do that? How do i do that?
Thanks
 
thanks, it will not let me do it as it says it violates integrity rules, the DB is a one to many with the PK in Main table autonumber.

Thanks.

Fen
 

Users who are viewing this thread

Back
Top Bottom