The IsValid property of the Command interface indicates whether the object is valid.
clsCubeCommand | clsDatabaseCommand |
Boolean
Read-only
Because of the flexible nature of command objects, only the following checks are performed:
The only way to see if a command functions the way you want it to is to execute it.
Use the following code to return the validity status of a command object:
'Assume an object (dsoCmd) of ClassType clsCubeCommand exists
If dsoCmd.IsValid Then
'Command is valid - save
Else
'Error with one or more properties
End If
About Decision Support Objects | Using Decision Support Objects |
Properties Cross-Reference |