|
Restricts the records available to the control, and maintains relational positioning in the associated table relative to field values of another VAccess control.
Changing the IndexNumber or TableName property will erase the current join.
The Join property syntax has these parts:
The Join property may be used to automatically synchronize related data files in one-to-one or one-to-many relationships.
VAccess controls may be joined together hierarchically by referencing index segments from the current index of one file to fields within another file. The Join property accomplishes this quickly, and automatically keeps the relationships updated during record navigation on any of the joined files.
To join one VAccess control to another, simply specify which index to use in the IndexNumber property, specify the name of the master VAccess control in the Join property, followed by a colon, followed by the names of the fields in the master control which will correspond exactly to values in the selected index of the joined control.
Suppose you have four tables:
To get a snapshot of an order beginning with a company name, join Orders to Customers by CompanyCode, join OrderLineItems to Orders by OrderNumber, and Products to Items by ProductCode (see Figure 6-2). Getting a Customer by company name will fetch all of that customer's orders, all line items for each order selected, and the correct product information for any selected line item. Choosing a different order or a different line item will re-synchronize the data sets of all of the subsequent joined controls.

Affected by: TableName, IndexNumber
|
Chapter contents
Prev topic: IntegralHeight
|