Display empty instead of 0

I use an expression in a TextBox:

Fields!myField.Value/10

myField is a type of integer in SqlServer.
If the value in myField is null, the expression "myField.Value/10" will display 0,

I want  the expression to display empty if myField is null.

How can I do that


Answer this question

Display empty instead of 0

  • Taffy III

    try this:

    =iif(Fields!myField.Value/10=0, "", Fields!myField.Value/10).

    Good Luck.

    Long


  • qubits

    You can also take advantage of the IsNothing() function.
  • Display empty instead of 0