Error:[BC30452] Operator '/' is not defined for types ........

  • Hello, 
    I have a report with a textbox that contains the following code and I get the error: [BC30452] Operator '/' is not defined for types 'Microsoft.ReportingServices.ReprotProcessing.ReportObjectModel.Field' and 'Double'.
    I tried the only thing I found by Googling the issue which was to make sure each part of the equation is enclosed in parentheses, example: (x+y)/(a+b) =iif(ReportItems!counter.Value  = "","",((Fields!Const_a))+((Fields!Const_b)/(ReportItems!counter.Value))+((Fields!Const_c)* (ReportItems!Textbox162. Value))+((Fields!Const_d)/(Pow(ReportItems!counter. Value,2)))+((Fields!Const_e)*(Pow(ReportItems!Textbox162. Value,2)))+((Fields!Const_f)*( ReportItems!Textbox162. Value) /( ReportItems!counter. Value))+((Fields!Const_g)/(Pow(ReportItems!counter. Value,3)))+((Fields!Const_h)*(Pow(ReportItems!Textbox162. Value,3)))+((Fields!Const_i)*((Pow(ReportItems!Textbox162. Value,2))/ (ReportItems!counter. Value)))+((Fields!Const_j)*((ReportItems!Textbox162. Value) /(Pow(ReportItems!counter. Value,2))))
     

    Any help is greatly appreciated.

Viewing 0 posts

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