D
dan
bottom line: cascade delete refuses to cascade delete!!
I have a medium complex database structure which has the
following tables:
* = primary key
members
memId *
clubs
clubId *
clubmembers
memId *
clubId *
clubattendance
memId *
clubId *
Date *
The tables have many more fields, but these are the
important ones. You may be able to guess, but these
tables have the following relationships:
members 1:M clubmembers
clubs 1:M clubmembers
clubmembers 1:M clubattendance
So far so good?
Now if I delete a record form the member table, I want the
deletion to cascade right through to the clubattendance
table. In order to do this, I have also set up the
relationships as follows:
members 1:M clubattendance
and likewise for clubs.
clubs 1:M clubattendance
I have also set up an automatic cascade update and delete
for these relationships.
However, Access complains when I try to delete a record
from either the members or clubs table where there are
related records in the clubattendance table. Access
reports that ref integ would be violated in the
clubattendance table so refuses to delete the record.
Any ideas? I appreciate that you'd probably have to draw
the relationships out yourself to fully understand, but
I'd appreciate any help.
Cheers,
Dan.
I have a medium complex database structure which has the
following tables:
* = primary key
members
memId *
clubs
clubId *
clubmembers
memId *
clubId *
clubattendance
memId *
clubId *
Date *
The tables have many more fields, but these are the
important ones. You may be able to guess, but these
tables have the following relationships:
members 1:M clubmembers
clubs 1:M clubmembers
clubmembers 1:M clubattendance
So far so good?
Now if I delete a record form the member table, I want the
deletion to cascade right through to the clubattendance
table. In order to do this, I have also set up the
relationships as follows:
members 1:M clubattendance
and likewise for clubs.
clubs 1:M clubattendance
I have also set up an automatic cascade update and delete
for these relationships.
However, Access complains when I try to delete a record
from either the members or clubs table where there are
related records in the clubattendance table. Access
reports that ref integ would be violated in the
clubattendance table so refuses to delete the record.
Any ideas? I appreciate that you'd probably have to draw
the relationships out yourself to fully understand, but
I'd appreciate any help.
Cheers,
Dan.