Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PARENT & CHILD TABLE ON SET RELATION
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00094517
Message ID:
00094529
Vues:
22
There's not a function that will do this. You can do it fairly fast yourself. You could use a SQL Select. Something like this:

m.AcctNo=tablea.AcctNo
SELECT CNT(AcctNo) AS ChildCount ;
FROM tableb
WHERE tableb.AcctNo=m.AcctNo ;
INTO CURSOR temp

m.ChildCount=temp.ChildCount

>I have two tables with a relation based upon an account #
>table a
>table b
>use table a order 0 (sintax is diff)
>set realtion on acct# into table b
>
>question: Is there a function that will tell me the number of records
>found in the child table and also if it is one or more than one append
>a code accordingly (aie. 1=m1 on child table, 2=m2 for each record on the child table)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform