G
Guest
I have a query that contains 5 tables that have a one-to-many relationship.
In the join properties, I chose to include All records from my 'main' table
and only those matching records from all other 4 tables. My form's data
source is this query. I added a button to my form that deletes a records.
The record is being deleted from my 'main' table, which I want, but it's also
being deleted from one of my other tables as well, which I don't want.
I usually only create relationships within queries and not in the
relationship window, but I though that maybe Enforce Referential Integrity
was automatically happening, so I created the relationships in the
relationship window, unchecking ERI on all joins. I still kept my
relationships in my query design though. When I delete a record, it is still
deleted in both tables. Any ideas how I can fix this? Thank you.
In the join properties, I chose to include All records from my 'main' table
and only those matching records from all other 4 tables. My form's data
source is this query. I added a button to my form that deletes a records.
The record is being deleted from my 'main' table, which I want, but it's also
being deleted from one of my other tables as well, which I don't want.
I usually only create relationships within queries and not in the
relationship window, but I though that maybe Enforce Referential Integrity
was automatically happening, so I created the relationships in the
relationship window, unchecking ERI on all joins. I still kept my
relationships in my query design though. When I delete a record, it is still
deleted in both tables. Any ideas how I can fix this? Thank you.