Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the no. of records of a child table ?
Message
From
13/05/2009 08:39:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/05/2009 23:38:35
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01399535
Message ID:
01399580
Views:
33
>Hi,
>I have a form which is to maintain the Invoice records in one to many relation, invoice header table and the invoice detail.
>When I browse the Invoice header table, I want to know how many child records refer one invoice no.
>Is there any system variable or function to get the no. of child records ?
>
>Please advise.
>
>Derek Yim

If you use a parameterized view for the child records, then reccount() will return the number of records directly. Otherwise you will have to do a COUNT.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform