Relations Collection

   Methods   Properties

A Relations collection contains stored CdbRelation objects of a CdbDatabase object (Microsoft Jet databases only).





Remarks

You can use the CdbRelation object to create new relationships and examine existing relationships in your database. To add a CdbRelation object to the Relations collection, first create it with the CreateRelation method, and then append it to the Relations collection with the Append method. This will save the CdbRelation object when you close the CdbDatabase object. To remove a CdbRelation object from the collection, use the Delete method.

To refer to a CdbRelation object in a collection by its ordinal number or by its Name property setting, use either of the following syntax forms:

Relations[0]

Relations["name"]