【问题标题】:How do I hide/show a field in crystal reports based on the value of another field?如何根据另一个字段的值隐藏/显示水晶报表中的字段?
【发布时间】:2015-04-06 12:32:00
【问题描述】:

我在报告中有 2 个字段,当 1 个字段为空或空白时,另一个字段将可见。请注意,该字段为空白/空,因为报告的查询没有返回任何结果,我实际上并没有将“”值传递给该字段。

If {Table1.StringColumn} = " " then true else false

由于某种原因,这似乎不起作用,但我有另一个报告,我做了类似的事情,它工作正常,唯一的区别是另一个报告是一个数字,我有类似 If {Table1.NumberCol} = 0 then true else false 的东西p>

我把它放在公式编辑器中,除了抑制。

【问题讨论】:

    标签: visual-studio-2008 crystal-reports crystal-reports-2008


    【解决方案1】:

    给空间与 null 不同。两者都是不同的,所以在你的情况下,公式应该是。

    If {Table1.StringColumn} = "" then true else false
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-12-20
      • 1970-01-01
      • 1970-01-01
      • 2012-03-17
      • 1970-01-01
      • 2021-08-31
      • 1970-01-01
      相关资源
      最近更新 更多