The ADO MD Cellset object contains the results of an MD query.
Here is VBS code that prepares the Cellset object for use:
'Connect the same way you would connect the Catalog object. Set cst1.ActiveConnection = cat1.ActiveConnection 'Specify the MD query with an MDX (Multidimensional Expressions) expression. strSource = "SELECT " & _ "{[Measures].members} ON COLUMNS, " & _ "NON EMPTY [Store].[Store City].members ON ROWS " & _ "FROM Sales" cst1.Source = strSource 'Populate the Cellset object. cst1.Open()
| Properties | Collections | Methods | Events |
|---|---|---|---|
|
|
|
|
FilterAxis returns an Axis object for the dimensions used to filter (slice) the Cellset. The Axis returned by the FilterAxis property is not contained in the Axes collection.
Item returns a Cell object of the Cellset using coordinates. The Item property is the default property for the Cellset object, ie the following syntaxes are equivalent:
cst1.Item(Positions) cst1(Positions)
Positions is a variant array that can be one of the following:
(intPositionInAxis_0_x_column, intPositionInAxis_1_y_row).(3,1) .("Time.[1999].May.[15]", "Store.IL.Chicago.[Will E. Coyote Goods]", "Product.Acme.Rockets.[A1 Turbo]", "Measure.Revenue"). Note that I've never seen examples or usage of this so that's my guess of what it's supposed to look like.
State returns a read only long integer for the connection state of the Cellset: 0 (adStateClosed) or 1 (adStateOpen).
Page Modified: (Hand noted: 2007-10-10 19:52:14Z) (Auto noted: 2007-11-17 06:47:27Z)