Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting up Parent Child relationships usig grids
Message
From
08/03/2006 11:10:48
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01102401
Message ID:
01102445
Views:
11
>Does anybody what the easiest way of showing parent / child relationships with 2 grids. What is the best way of setting them up (steps needed)?
>
>Many thanks

Neil

The EASIEST way:

- Create your 2 grids
- Go into the DE
- with the 2 tables involved, drag a reln. from the parent's PK field to the child's corresponding FK.
(NOTE not from the indexes list, as you would in the ERD of the database designer. But after creating the
reln. the DE will show the keys joined as from the parent PK index to the child's FK field. Go figure.
- Bosh! as you change rec in the parent grid the corresponding children recs will appear in the child grid

Terry
- 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
Reply
Map
View

Click here to load this message in the networking platform