Nested iff not working for final subreport

  • Hi,

    I am migrating a SSRS 2005 report to SSRS 2008 and have come across a problem with a nested IFF expression.

    =IIF(Rownumber("Main")=0,Nothing,

    IIF(First(Fields!ReportType.Value, "Main")= "Report1",

    IIF(First(Fields!ReportType.Value, "Main")= "Report2",

    IIF(First(Fields!ReportType.Value, "Main")= "Report3",

    IIF(First(Fields!ReportType.Value, "Main")= "Report4",

    IIF(First(Fields!ReportType.Value, "Main")= "Report5","ErrorReport"))))))

    The expression above works for all reports besides the "ErrorReport" in the else part of the expression.

    This works fine in SSRS 2005.

    Any ideas as to why this would stop working in 2008?

    Thanks,

    Jinx.

  • Problem seems to have magically disappeared when I opened and ran each subreport.:rolleyes:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply