R
rml
I'm using the following code to combine four fields. It works fine. My
problem is when all the fields are blank I get #Error on the report for that
record. What I would like when all fields are blank is "NA" to be placed.
Thanks.
=Left(IIf(IsNull([np1]),"",[np1] & ", ") & IIf(IsNull([np2]),"",[np2] & ",
") & IIf(IsNull([np3]),"",[np3] & ", ") & IIf(IsNull([np4]),"",[np4] & ",
"),Len(IIf(IsNull([np1]),"",[np1] & ", ") & IIf(IsNull([np2]),"",[np2] & ",
") & IIf(IsNull([np3]),"",[np3] & ", ") & IIf(IsNull([np4]),"",[np4] & ",
"))-2)
problem is when all the fields are blank I get #Error on the report for that
record. What I would like when all fields are blank is "NA" to be placed.
Thanks.
=Left(IIf(IsNull([np1]),"",[np1] & ", ") & IIf(IsNull([np2]),"",[np2] & ",
") & IIf(IsNull([np3]),"",[np3] & ", ") & IIf(IsNull([np4]),"",[np4] & ",
"),Len(IIf(IsNull([np1]),"",[np1] & ", ") & IIf(IsNull([np2]),"",[np2] & ",
") & IIf(IsNull([np3]),"",[np3] & ", ") & IIf(IsNull([np4]),"",[np4] & ",
"))-2)