Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counting Child Records
Message
 
 
À
07/05/2002 20:22:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00653805
Message ID:
00653807
Vues:
26
>I have two tables related together and want to be able to count the number of associated child records whenever I move the pointer in the parent table.
>
>How do I do this?
>
>Thanks!

Use either Select SQL (if tables unbuffered) or count, e.g.
select child
lnRecno=recno()
count for ChildID = m.lnParentID to lnChildren
go to lnRecno
select Parent
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform