views:

361

answers:

1

I'm making a report and in a text box I want to show the Tax ID of a entity if one exists. However if a tax ID doesn't exist then that field is just white space. So if the field is white space I want to show nothing in the text box.

IIF(IsNothing(Fields!TAX_ID.Value), "", "Tax ID: " & vbCrLf & Fields!TAX_ID.Value)

What do I do?

+2  A: 

However IsNothing might not always evaluate it properly. Might try:

IIF(Trim(Fields!TAX_ID.Value) = "", "", "Tax ID: " & vbCrLf & Fields!TAX_ID.Value)
Mike Scott
Thanks a bunch.
jamone