Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cascade update
Message
From
13/06/2001 11:17:18
 
 
To
13/06/2001 10:32:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00518764
Message ID:
00518903
Views:
7
>Hi
>What should I do in delete trigger??
>If I have key MemberType in Parent tabel and child table, I purge the child table. After that I change the key value for the membertype in my parent table. Since some record in child table is purged, ifthese records restored, the relationship will be broken. How to solve it?
>
>Thank you


The delete trigger will fire before the record is actually deleted. You can grab the parent ID from the record, then update the parent.

IMO, it is not a good idea to keep information about the children in the parent for this very reason.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform