Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PARENT & CHILD TABLE ON SET RELATION
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00094517
Message ID:
00094529
Views:
21
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform