H
Hans Riis
Hi Thao.
Thanks for looking at my problem in a previous posting. It's getting very
critical now as my boss
and my client are fighting over what is reasonable to provide besides the
standard functionality.
I get the right values for year/month/day when running
SetLocale("en-us")
For i = 0 To 13
datevar = date()-i
yearvar = cstr(year(datevar))
monthvar = monthname(month(datevar), False)
dayvar = day(datevar)
MSGBOX(yearvar & " " & monthvar & " " & dayvar)
datearray(i) =
objPFS.Member.ChildMembers(yearvar).ChildMembers(monthvar).ChildMembers(dayv
ar-1).value
MSGBOX(datearray(i))
Next
The result of the first Msgbox is 2004 October 16 - 2004 October 29. The
second Msgbox yields only the numbers 16-29.
If I don't write ".value" at the end when extracting dates from the
objPFS.Member, I get an error.
Both our SQL Server and Analysis Manager are English versions so the
SetLocale should ensure the correct date values.
To me it seems like the problem lies in one of these lines:
datearray(i) =
objPFS.Member.ChildMembers(yearvar).ChildMembers(monthvar).ChildMembers(dayv
ar-1).value
objPF.IncludedMembers = datearray
Thao would you please please please help me solve this problem before I get
caught between my boos and my client?
Thanks again, Hans Riis
Thanks for looking at my problem in a previous posting. It's getting very
critical now as my boss
and my client are fighting over what is reasonable to provide besides the
standard functionality.
I get the right values for year/month/day when running
SetLocale("en-us")
For i = 0 To 13
datevar = date()-i
yearvar = cstr(year(datevar))
monthvar = monthname(month(datevar), False)
dayvar = day(datevar)
MSGBOX(yearvar & " " & monthvar & " " & dayvar)
datearray(i) =
objPFS.Member.ChildMembers(yearvar).ChildMembers(monthvar).ChildMembers(dayv
ar-1).value
MSGBOX(datearray(i))
Next
The result of the first Msgbox is 2004 October 16 - 2004 October 29. The
second Msgbox yields only the numbers 16-29.
If I don't write ".value" at the end when extracting dates from the
objPFS.Member, I get an error.
Both our SQL Server and Analysis Manager are English versions so the
SetLocale should ensure the correct date values.
To me it seems like the problem lies in one of these lines:
datearray(i) =
objPFS.Member.ChildMembers(yearvar).ChildMembers(monthvar).ChildMembers(dayv
ar-1).value
objPF.IncludedMembers = datearray
Thao would you please please please help me solve this problem before I get
caught between my boos and my client?
Thanks again, Hans Riis