Parent

The Parent property of the Command interface contains a reference to the parent MDStore object.

Applies To
clsCubeCommand clsDatabaseCommand

Data Type

MDStore

The class of the parent object depends on the class of the command object.

Command object class Parent object class
clsDatabaseCommand clsDatabase
clsCubeCommand clsCube

Access

Read-only

Example

Use the following code to determine the ClassType of the parent of a command object.

'Assume that an object (dsoCmd) exists.

Dim cmdParent As MDStore

Set cmdParent = dsoCmd.Parent

  Select Case cmdParent.ClassType

    Case clsDatabase

        'Code related to database

    Case clsCube

        'Code related to cube

End Select

See Also
About Decision Support Objects Using Decision Support Objects
Properties Cross-Reference  

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.