报表查看器-转换任何0值显示空白或空值
本文关键字:显示 空白 空值 任何 转换 报表 | 更新日期: 2023-09-27 18:16:58
如何使任何0值显示为空白或null?是否可以在报表查看器中执行条件表达式
更新:这是我尝试过的
=IIf(FormatNumber(Fields!totalnetamaount.Value, 2) is 0, "", FormatNumber(Fields!totalnetamaount.Value, 2))
抛出异常
Error 1文本的Value表达式"totalnetamaount.Paragraphs[0]。texttruns[0] '包含错误:[BC30020] 'Is'运算符不接受'Integer'类型的操作数。操作数必须是引用或可空的类型。
将"is"替换为"="。修改条件如下:
=IIf(FormatNumber(Fields!totalnetamaount.Value, 2)=0, "", FormatNumber(Fields!totalnetamaount.Value, 2))