Parent Property

Applies To:

Recordset object

Description:

This object's creator/owner.

Syntax:

LPDISPATCH/Object Recordset.Parent

Remarks:

Read-only.  For the Recordset object, this property points to the Document to which the records belong.

Example:

The following Visual Basic code uses the Parent property of the Recordset object to get the name of the active document.

Dim FinderApp As Object    'Application
Dim RecSet As Object         'Recordset
Dim DocName As String      'Document name

'Set RecordSet
Set RecSet = FinderApp.ActiveDocument.Recordset

'Get name of active document
DocName = RecSet.Parent.Name

See Also:

Document object


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA