A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Cascade deletion of referral tables



 
 
Thread Tools Display Modes
  #1  
Old March 6th, 2009, 04:00 AM posted to microsoft.public.access.tablesdbdesign
ralf
external usenet poster
 
Posts: 28
Default Cascade deletion of referral tables

Hello,

I've a
1:1 relationship between tables A and B
1:n relationship between tables B and C
1:1 relationship between tables C and D

I set up cascade deletion for all relationships. Now, by deleting an entry
out of table A, I would expect that all related entries out of B,C and D will
be deleted too. Strange enough, by deleting an entry out of B, all related
entries out of C will be deleted. But table D remains untouched.

Does cascade deletion work for 1:n relationships only?

Thank you for your help!
Ralf
  #2  
Old March 11th, 2009, 01:50 AM posted to microsoft.public.access.tablesdbdesign
Clifford Bass[_2_]
external usenet poster
 
Posts: 1,295
Default Cascade deletion of referral tables

Hi Ralf,

It works fine for me. That is until I experimented with changing the
direction of the relationship between C and D. If you drag the lines from C
to D it works because C is then the parent of D. If you reverse it, dragging
the lines from D to C, D becomes the parent of C. In which case a deletion
of the child will not cascade up to the deletion of the parent. You can
double-check what you did by double-clicking on one of the lines. The parent
is shown on the left side and the child on the right side.

Hope that helps,

Clifford Bass

"Ralf" wrote:

Hello,

I've a
1:1 relationship between tables A and B
1:n relationship between tables B and C
1:1 relationship between tables C and D

I set up cascade deletion for all relationships. Now, by deleting an entry
out of table A, I would expect that all related entries out of B,C and D will
be deleted too. Strange enough, by deleting an entry out of B, all related
entries out of C will be deleted. But table D remains untouched.

Does cascade deletion work for 1:n relationships only?

Thank you for your help!
Ralf

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.