dbTalk Databases Forums  

EssBase VBA Problem

comp.databases.olap comp.databases.olap


Discuss EssBase VBA Problem in the comp.databases.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bill Schanks
 
Posts: n/a

Default EssBase VBA Problem - 08-09-2004 , 12:58 PM






I have the below code in an Access 2000 Database, and when it gets to
'hCtx = EssVGetHctxFromSheet(Null)' I get the error File Not Found:
essexcln.xll.

This code works fine in Excel. Any ideas?

Code:

Declare Function EssVGetHctxFromSheet Lib "essexcln.xll" (ByVal _
sheetName As Variant) As Long
Declare Function EssVConnect Lib "essexcln.xll" (ByVal sheetName As _
Variant, ByVal username As Variant, _
ByVal password As Variant, ByVal server As Variant, _
ByVal application As Variant, ByVal database As Variant) As Long

Function fGetEssBaseData()

Dim hCtx As Long
Dim objXL As New Excel.application

With objXL

.application.RegisterXLL FileName:="c:\essbase\bin\essexcln.xll"
.Visible = True

hCtx = EssVGetHctxFromSheet(Null)
If hCtx = 0 Then
X = EssVConnect(Null, Forms![frmEssBaseLogin]![txtUID], _
Forms![frmEssBaseLogin]![txtPW], conServer, conApp, _
conDB)
hCtx = EssVGetHctxFromSheet(strSheet)
If hCtx = 0 Then
MsgBox ("General Error in connecting to sheet.")
GoTo Quit
End If
If X <> 0 Then
MsgBox ("Connect Failed. Error: " + Str(X))
End If
End If
End With

Quit:
End Function

Reply With Quote
  #2  
Old   
Dave Butler
 
Posts: n/a

Default Re: EssBase VBA Problem - 08-09-2004 , 09:05 PM







"Bill Schanks" <wschanks (AT) hotmail (DOT) com> wrote

Quote:
I have the below code in an Access 2000 Database, and when it gets to
'hCtx = EssVGetHctxFromSheet(Null)' I get the error File Not Found:
essexcln.xll.

This code works fine in Excel. Any ideas?
An XLL file is an Excel Add-in. Is this supposed to work in Access?

Dave Butler




Reply With Quote
  #3  
Old   
Bill Schanks
 
Posts: n/a

Default Re: EssBase VBA Problem - 08-10-2004 , 11:56 AM



"Dave Butler" <DaveButlerREMOVE (AT) hotmail (DOT) com> wrote

Quote:
"Bill Schanks" <wschanks (AT) hotmail (DOT) com> wrote in message
news:fdcb28ed.0408090958.17f14b15 (AT) posting (DOT) google.com...
I have the below code in an Access 2000 Database, and when it gets to
'hCtx = EssVGetHctxFromSheet(Null)' I get the error File Not Found:
essexcln.xll.

This code works fine in Excel. Any ideas?

An XLL file is an Excel Add-in. Is this supposed to work in Access?

Dave Butler
I guess that is my problem. I found some information on the Hyperion
web page: dev.hyperion.com


Reply With Quote
  #4  
Old   
Gayle D
 
Posts: n/a

Default Re: EssBase VBA Problem - 09-07-2004 , 04:29 PM



wschanks (AT) hotmail (DOT) com (Bill Schanks) wrote in message news:<fdcb28ed.0408100856.5957a96f (AT) posting (DOT) google.com>...
Quote:
"Dave Butler" <DaveButlerREMOVE (AT) hotmail (DOT) com> wrote

"Bill Schanks" <wschanks (AT) hotmail (DOT) com> wrote in message
news:fdcb28ed.0408090958.17f14b15 (AT) posting (DOT) google.com...
I have the below code in an Access 2000 Database, and when it gets to
'hCtx = EssVGetHctxFromSheet(Null)' I get the error File Not Found:
essexcln.xll.

This code works fine in Excel. Any ideas?

An XLL file is an Excel Add-in. Is this supposed to work in Access?

Dave Butler

I guess that is my problem. I found some information on the Hyperion
web page: dev.hyperion.com
If you need help with Hyperion VBA commands, I think the support
program by HCG will cover it... http://shop.harbinger-group.com or
http://www.harbinger-group.com/support.shtml ??

Gayle


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.