If statement 我如何在Crystal Reports中做到这一点?

If statement 我如何在Crystal Reports中做到这一点?,if-statement,count,crystal-reports,report,If Statement,Count,Crystal Reports,Report,我必须创建一个公式来限制报告中的注册表。 是这样的: If {sp_rep_comite.vnumero_cte}< '00' then {sp_rep_comite.vnumero_cte} Else If {sp_rep_comite.vnumero_cte} > '00' then {sp_rep_comite.vnumero_cte} Else If {sp_rep_comite.vnumero_cte} > '04'then "" Els

我必须创建一个公式来限制报告中的注册表。 是这样的:

If {sp_rep_comite.vnumero_cte}< '00' then 
   {sp_rep_comite.vnumero_cte}
Else

If {sp_rep_comite.vnumero_cte} > '00'  then 
   {sp_rep_comite.vnumero_cte}
Else 

If {sp_rep_comite.vnumero_cte}  > '04'then 
""

Else 
if {sp_rep_comite.vnumero_cte}< '04' then {sp_rep_comite.vnumero_cte}
如果{sp_rep_comite.vnumero_cte}<'00',则
{sp_rep_commite.vnumero_cte}
其他的
如果{sp_rep_commite.vnumero_cte}>'00',则
{sp_rep_commite.vnumero_cte}
其他的
如果{sp_rep_commite.vnumero_cte}>'04'
""
其他的
如果{sp_rep_commite.vnumero_cte}<'04',则{sp_rep_commite.vnumero_cte}

但它不起作用。

请详细说明“但它不起作用”的含义?你收到错误信息了吗?还是一种意外的行为?乍一看,您似乎正在尝试将整数与字符串进行比较。可能您需要在比较之前转换这些值。
不起作用
意味着什么?是否有任何错误或不是预期的结果?确切的问题是什么?如果您试图使用此公式筛选记录选择、禁止打印记录或确定要打印的字段值,这也会有所帮助。结果不是我所期望的。我猜{sp_rep_comite.vnumero_cte}不是文本字段?