Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent - child relationship
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00937128
Message ID:
00937926
Views:
12
Hi Jonathan

When you add your tables to the DE any parent-child rel's appear in the DE's ERD. You can click on a rel and delete it (it's ONLY removed in that form - not in your database). Then you can "draw" your own "reverse" rel by dragging the (official) child's foreign key field to the parent's primary key field.

This is particularly useful for, say, look-up tables in combos (i.e. when a look-up table value can be had by many main records, e.g. State, County, color code etc.). The parent, of course, officially, is the look-up table record, as it can have many records using it in another table. Thus when you change the form's main record the look-up value in the combo will automatically be updated.

Terry

>Hi All,
>
>Is there a "generic" way to get back to the correct record in the parent table after a specific search on the child table?
>For example, the pointer moves in the child table following a move in the parent. Thats inherent in a relation. Is there a "smart" way to do it in reverse?
>
>Thanks, J
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform