question

mrichard1023 avatar image
mrichard1023 asked

How to fix #Error when using IIF Function in SSRS?

When the height field is filled out the expression below works. However, when the field is left blank it returns an error.

Any help would be awesome!

This is the expression I am using in my report:

=IIF(Fields!height.Value= "", "", IIF(GetChar(Fields!height.Value, 2) = "0",Replace(Fields!height.Value, GetChar(Fields!height.Value, 2), "'") & Chr(34) & "/", Left(Fields!height.Value,1) & "'" & Right(Fields!height.Value,2) & Chr(34) & "/"))
ssrsreportingreporting_services
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.