Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting up Parent Child relationships usig grids
Message
De
08/03/2006 11:10:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01102401
Message ID:
01102445
Vues:
9
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform