IIF IsNothing expression example

牧云@^-^@ 提交于 2021-02-08 10:50:46

问题


I'm using SSRS 2008 and am trying to create an expression where if date field A is greater than date field B or date field A is NULL then this filter will select this record. How do I do this?

I tried this expression to select NULL date fields, but it is not working. I set the datatype to "Text" for now--should I set this to boolean instead? If so, then how can I modify this expression?

=iif(isnothing(Fields!A_date.Value),"yes","no")

回答1:


=IIF((CDATE(Fields!A_date.Value)>CDate(Fields!B_date.Value)) OR ISNothing(Fields!A_date.Value),"Yes","NO")

Try this !!!



来源:https://stackoverflow.com/questions/8917670/iif-isnothing-expression-example

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!