ALL SUBRECORDS (subtable)
|subtable||Subtable||Subtable in which to select all subrecords|
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.
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)
QUERY SUBRECORDS, Records in subselection.