Hi Guys,
I Can't seem to get my IIF statement correct i am working with 4 fields Say field1, field2, field3, field4.
What i want to do is display field1 and field2 together seperated by a comma if both are not null and field3 or field4 are not null, if field1 is not null and both field3 and field4 is null then display just field1, if field1 is null then display field2, else if field2 is null then dispay field1
this is my iif statement for the above, it has syntax error:
Thanks in advance for any help,
M-.
I Can't seem to get my IIF statement correct i am working with 4 fields Say field1, field2, field3, field4.
What i want to do is display field1 and field2 together seperated by a comma if both are not null and field3 or field4 are not null, if field1 is not null and both field3 and field4 is null then display just field1, if field1 is null then display field2, else if field2 is null then dispay field1
this is my iif statement for the above, it has syntax error:
Code:
IIf(IIf(IIf(IsNull(Strd) Or Not IsNull(Locdd & Locd), STRD & IIf(IsNull(STR),'',', ' & STR), IIf(IsNull(STR),'',', ' & STR)) & not IsNull(Strd) Or Not IsNull(Locdd & Locd), STRD & IIf(IsNull(STR),'',', ' & STR), IIf(IsNull(STR),'',', ' & STR))) & not IsNull(Strd) and IsNull(Locdd & Locd), STRD, IIf(IsNull(STR),'',', ' & STR)))
Thanks in advance for any help,
M-.