需要配方帮助

时间:2013-03-14 11:46:24

标签: crystal-reports

我正在尝试撰写一份报告,该报告正在寻找尚未接受某项免疫接种的人。问题是,我试图制定一个公式,它说他们已经或没有接受过免疫接种。当我去验证时,它并不总是正确的

if ({table.column} in (ID#) to (ID#)) then
"Has had Immunization"
else if ({table.column} <> (ID#) to (ID#))
then "Has not had Immunization"

ID#与所有人的号码相同。

1 个答案:

答案 0 :(得分:0)

记录选择公式:

// list desired immunization values; remove quotes if IDs are numeric
{table.field} IN [
  'ID0',
  'ID1',
  ...
  'IDn'
]