manipulating data with expressions

  • I WOULD LIKE TO DO A CONDITIONAL FORMATING ON A FIELD.  This is what I'd like it to do:-  The query has NULLs and blanks in some fields and I want the field on the report to display a "0" (zero) If null values.  How would I write the expression.  The expression below errors out. 

     

     

    =IIf(Fields!Cost.Value IS NULL, "0", Fields!Cost.Value)

     

    Thanks in advance for any help.

     

     

    -Tash

  • select isnull(value,0) in your sql code would do the job

    MVDBA

  • Or use this expression:

    =IIF(Fields!Cost.Value=Nothing,0,Fields!Cost.Value)

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

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