Parent Property

Applies To:

Recordset object


This object's creator/owner.


LPDISPATCH/Object Recordset.Parent


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


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
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA