Crystal Date范围用于查看选择公式中的2个字段

时间:2013-11-01 16:39:27

标签: crystal-reports

我尝试将if insull({exit.date )的所有记录带到{enter.date} <= {?start date} else if not isnull ({exit.date) then if {exit.date} > {?end date} but the {Enter Date} <= {?Start Date}的记录中,以便拉出该记录else if {Exit.date}<= {?End date} and the {enter.date}>=来提取这些记录。 任何帮助是极大的赞赏。

提前致谢。

1 个答案:

答案 0 :(得分:0)

这里有点混乱。让我们来看看: 你想带来(isNull({exit.date}) AND {enter.date} <= {?start date})的记录。 接下来是<> isNull({exit.date}) AND {exit.date} > {?end date} AND {enter.date} > {?Start Date} AND {Exit.Date} > {?End Date}。不确定最后一个条件应该是什么,因为它错过了一个部分。 所以此时你正在看(isNull({exit.date}) AND {enter.date} <= {?start date}) AND ((<> isNull({exit.date})) AND ({exit.date} > {?end date}) AND ({enter.date} > {?Start Date}) AND ({Exit.Date} > {?End Date}))之类的东西 当然,所有这些都会记录在您的记录中。