按员工类型复杂编辑名称

时间:2014-10-15 08:33:10

标签: crystal-reports-xi

我想在报告的一列中为特定的员工类型添加前缀而不是另一个;通过说

If {staff type} = {doctor} then add 'dr' to the name, 
If {staff type} = {nurse} then don't add dr 

但是我很难找到一种方法来实现它作为我见过的唯一其他方式,然后公式是他们通常不涉及两个表而且我不知道如何加入它们。他们通常说; if {target} >500 then exceeded, if {target} <500 then below.

感谢建议。

不熟悉CR语法,请注意。

由于

1 个答案:

答案 0 :(得分:0)

试试这个:

If {staff type} = {doctor}

 then "dr " + <<Database field.name>> 

else If {staff type} = {nurse} 

then <<Database field.name>>