【问题标题】:Crystal Reports Multiple Fields If Then ElseCrystal Reports 多个字段 If Then Else
【发布时间】:2018-08-29 02:58:53
【问题描述】:
if {field 1}>0 then "Monday"
else  if isnull({field 1}) then
    If {field 2}>0 then  "Wednesday"
    else if isnull({Wednesday}) then "Test"

报告链接到 Excel 电子表格和 sql 表。 sql 表是公式数据所在的表。

我收到的唯一结果是星期一。字段 2 中有数字。

提前感谢您的帮助。第一次发帖,格式或位置不对请见谅。

【问题讨论】:

  • 你的问题解决了吗?

标签: crystal-reports


【解决方案1】:

这是一个很长的镜头,但试试这个:

if not isnull({field 1}) and {field 1}>0 then "Monday" //only changed this line
else  if isnull({field 1}) then
    If {field 2}>0 then  "Wednesday"
    else if isnull({Wednesday}) then "Test"

Crystal 不喜欢面对空洞的东西。

【讨论】:

    猜你喜欢
    • 2010-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多