version 3
ALL SUBRECORDS (subtable)
Parameter | Type | Description | |
subtable | Subtable | Subtable in which to select all subrecords |
Description
ALL SUBRECORDS makes all the subrecords of subtable the current subselection. If a current parent record does not exist, ALL SUBRECORDS has no effect. When a parent record is first loaded, the subselection contains all subrecords. A subselection may not contain all subrecords after ADD SUBRECORD, QUERY SUBRECORDS, or DELETE SUBRECORD is executed.
Example
The following example selects all subrecords to ensure that they are all included in the sum:
ALL SUBRECORDS ([Stats]Sales) TotalSales := Sum ([Stats]Sales'Dollars)
See Also
QUERY SUBRECORDS, Records in subselection.