2010-07-02 60 views
2

我在我的SSRS報告中有此聲明。對於顏色表達的iif錯誤

=iif(
    ((Fields!lngCount2.Value-Fields!lngCount.Value)/Fields!lngCount.Value) > 0 
     and Fields!strSegmentName.Value ="Struggler" 
     or Fields!strSegmentName = "Winback" 
     or Fields!strSegmentName.Value = "Former", 
      "Green" , 
        iif(
         ((Fields!lngCount2.Value-Fields!lngCount.Value)/Fields!lngCount.Value) < 0 
          and Fields!strSegmentName.Value ="New" 
          or Fields!strSegmentName = "Riser" 
          or Fields!strSegmentName.Value = "High Value", 
           "Green", 
            "Red") 
) 

我收到下面的錯誤。

An error occurred during local report processing. The definition of the report 'Main Report' is invalid. The Color expression for the textbox ‘textbox8’ contains an error: [BC30518] Overload resolution failed because no accessible '=' can be called with these arguments:

如何解決此錯誤?

回答

6

認爲您錯過了Fields!strSegmentName = "Riser"or Fields!strSegmentName = "Winback"的'.value'