我正在接受以下字符串的挑战:
Datedeath: IIf([Members.Status]=[“DA”] Or [“DB”] Or [“DJ”] Or [“DC”], else [members.deathdate] "29/02/1844"
有人可以指导我如何写这个iif语句吗?
答案 0 :(得分:1)
检查条件是否已满足,设置新日期或保留
[members.deathdate]:IIf ((([Members.Status] = "DA" Or [Members.Status] = "DB" Or [Members.Status] = "DJ" Or [Members.Status] = "DC") And ([members.deathdate] = "" Or IsNull([members.deathdate]))), "29/02/1844", [members.deathdate])