Hi
I need to build a local .cub file for my Excel-using clients.
I have scrounged together some VB code but it fails :
ConnLocation = "LOCATION=C:\test.cub;"
ConnDSN = "SOURCE_DSN=DSN=TEST;UID=test;PWD=pass;"
ConnCreateCube = _
"CREATECUBE=CREATE CUBE [TestCube] (" & _
"DIMENSION [account_code]);"
Connection = CreateObject("ADODB.Connection")
Connection.Provider = "msolap"
Connection.ConnectionString = _
ConnLocation & _
ConnDSN & _
ConnCreateCube
I have trimmed this down to the above code and am getting a mysterious "OLE DB error: OLE DB or ODBC error." when i try to run it.
Any help on the above or suggestions on a different way to approach this would me much appreciated.
thanks Len