The Parent property of the Command interface contains a reference to the parent MDStore object.
clsCubeCommand | clsDatabaseCommand |
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 |
Read-only
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
About Decision Support Objects | Using Decision Support Objects |
Properties Cross-Reference |