views:

21

answers:

1

Basically, I want to check if the value of field F1 is not empty. If the row not empty then I want to calculate F2 * F3

The following expression always print

 #Error 
=IIf(Fields!f1 ="" ,"" ,Fields!f2.Value* Fields!If3.Value)

Please help

A: 
    =IIF(ISNOTHING(Fields!f2.Value)," ", (IIF(ISNOTHING(Fields!If3.Value),"", 
Fields!f2.Value* Fields!If3.Value))
Pranay Rana
I tried this too, but it always shows #Error
ahmed
is f2 and f3 field has value
Pranay Rana
check f2 and f3 both are number type
Pranay Rana
Some times F2 dose not have any value. Therefore it print #Error. I thought that =IIf(Fields!f1 ="" ,"" ,Fields!f2.Value* Fields!If3.Value)will only exeute the calculation if the condition is true. However, its not working
ahmed
I also tried this =IIF(ISNOTHING(Fields!f2.Value)," ", Fields!f2.Value* Fields!If3.Value)
ahmed
CHECK THE UPDATED ANSWER
Pranay Rana