我将以下语句输入作为单元格的背景颜色正常工作,但如果该单元格为空白,则代码返回红色阴影。
=IIF(Fields!DBS_Next_Due___App_1.Value <= Today(), "#FF9696",
IIF(Fields!DBS_Next_Due___App_1.Value <= dateadd("d",180,Today()), "#FFFF96", "White"))
我尝试使用isnothing
设置来处理空白,但我无法正确理解语法。任何帮助将不胜感激
=IIF((IsNothing(Fields!DBS_Next_Due___App_1.Value <= Today()) , “#FF9696”,
IIF(IsNothing(Fields!DBS_Next_Due___App_1.Value <= dateadd("d",180,Today())) , "#FFFF96",
AND NOT IsNothing(Fields!DBS_Next_Due___App_1.Value), "WHITE"))
答案 0 :(得分:0)
您只需要检查null并使用&lt; =。
对其进行OR运算IIF(IsNothing(Fields!xxx.Value) OR Fields!xxx.Value <= Today())