Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referential Integrity and adding records
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00236885
Message ID:
00236913
Views:
10
>I have two table setup with a one-to-one relationship. The RI - is set to Cascade,Restrict,Restrict. I can add a record to the parent table, but when I do an Append Blank in the chilc table I get a trigger failure. This all makes sense to me and I think I understand why.
>
>But then how can you add a new record to the child table with RI enforced??
Hi Chad.

Make sure that you have the parent record's primary key in the child record before doing a tableupdate. If you are not using buffering, use insert into to populate the child table instead of append blank.

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform