StrToMember
is a function that takes one argument, which is a string. You seem to try to pass it a set, as you are using curly braces. The correct syntax would be:
WHERE (
strtomember("[Time Dim].[FSCL YEAR].&[" + Format(now(), "yyyy") + "]"),
strtomember("[Time Dim].[FSCL MONTH].&[" + Format(now(), "m") + "]")
)
The argument to StrToMember
in both cases ia a string concatenated from fix strings like "[Time Dim].[FSCL YEAR].&["
and "]"
, as well as the result of the Format
function.