dbTalk Databases Forums  

MDX and VBA functions

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss MDX and VBA functions in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Koller
 
Posts: n/a

Default MDX and VBA functions - 06-22-2004 , 03:52 AM






Apologies, this is a cross-post from oledb.olap.

To my understanding, using VBA in my calculated members should work "out of
the box"

Simply put: I cant seem to get VBA funnctions to work in my calculated
members.

I try:

strToMember("[Time].[All Time].[" + VBA!year(now()) + "]")

And it gives me a "token not valid" error.

Im running AS SP3.

Anyone know what im doing wrong?




Reply With Quote
  #2  
Old   
Hans van Kruijssen
 
Posts: n/a

Default Re: MDX and VBA functions - 06-22-2004 , 04:16 AM






Peter Koller wrote:

Quote:
Apologies, this is a cross-post from oledb.olap.

To my understanding, using VBA in my calculated members should work
"out of the box"

Simply put: I cant seem to get VBA funnctions to work in my calculated
members.

I try:

strToMember("[Time].[All Time].[" + VBA!year(now()) + "]")

And it gives me a "token not valid" error.

Im running AS SP3.

Anyone know what im doing wrong?
Leave out the VBA! part, just type year(now()), that should work


Reply With Quote
  #3  
Old   
Peter Koller
 
Posts: n/a

Default Re: MDX and VBA functions - 06-22-2004 , 05:05 AM



Sorry, im still getting the "token not valid error".
When i register my own libraries it works, just not with the supposedly pre
regsitered vba functions..

"Hans van Kruijssen" <hans.vanKruijssen (AT) agilisys (DOT) com> skrev i melding
news:edAadmDWEHA.2844 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Quote:
Peter Koller wrote:

Apologies, this is a cross-post from oledb.olap.

To my understanding, using VBA in my calculated members should work
"out of the box"

Simply put: I cant seem to get VBA funnctions to work in my calculated
members.

I try:

strToMember("[Time].[All Time].[" + VBA!year(now()) + "]")

And it gives me a "token not valid" error.

Im running AS SP3.

Anyone know what im doing wrong?

Leave out the VBA! part, just type year(now()), that should work



Reply With Quote
  #4  
Old   
Hans van Kruijssen
 
Posts: n/a

Default Re: MDX and VBA functions - 06-22-2004 , 05:31 AM



Peter Koller wrote:

Quote:
Sorry, im still getting the "token not valid error".
When i register my own libraries it works, just not with the
supposedly pre regsitered vba functions..

"Hans van Kruijssen" <hans.vanKruijssen (AT) agilisys (DOT) com> skrev i melding
news:edAadmDWEHA.2844 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Peter Koller wrote:

Apologies, this is a cross-post from oledb.olap.

To my understanding, using VBA in my calculated members should
work "out of the box"

Simply put: I cant seem to get VBA funnctions to work in my
calculated members.

I try:

strToMember("[Time].[All Time].[" + VBA!year(now()) + "]")

And it gives me a "token not valid" error.

Im running AS SP3.

Anyone know what im doing wrong?

Leave out the VBA! part, just type year(now()), that should work
That is weird, since here it is working.
I have no idea what it could be then.


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.