MethodConnection
DescriptionReturns the ADODB.Connection object of the current cube.
Return typeADODB.Connection
Parameters
Example Dim m_cnConnection As Object
 Set m_cnConnection = CreateObject("ADODB.Connection")
 Set m_cnConnection = Cube1.Connection
 call msgBox( _
  m_cnConnection.ConnectionString)
ExplanationCreates an ADODB.Connection object and retrieves the control current connection, then prints its connection string.
See also
NotesYou can use a reference in your VB project to the library Microsoft ActiveX Data Objects 2.x Library" and use:
Dim m_cnConnection as new ADODB.Connection.