报告查看器防爆pression [英] Report Viewer Expression
本文介绍了报告查看器防爆pression的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上,我要检查,如果场F1的值不为空。如果该行不为空,那么我想计算F2 * F3
Basically, I want to check if the value of field F1 is not empty. If the row not empty then I want to calculate F2 * F3
下面EX pression始终打印
The following expression always print
#Error
=IIf(Fields!f1 ="" ,"" ,Fields!f2.Value* Fields!If3.Value)
请帮忙
推荐答案
您必须使用Val函数。
You must use the Val function.
=IIF(IsNumeric(Fields!f2.Value) and IsNumeric(Fields!If3.Value),
Val(Fields!f2.Value)*Val(Fields!If3.Value),
Nothing
)
的ReportViewer
是一种痛苦。 IIF始终评估2份(真假)。
ReportViewer
is a pain. IIf always evaluate 2 parts (true and false).
这篇关于报告查看器防爆pression的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文