Hello,
I have four fields in a table with the same type of data that I want to combine into one. As a result I have set up a calculated field in a query. Some fields in the table are null and some are a zero length string. I used the following expression, and variations thereof, but it doesn't work. Could someone tell me what I did wrong?
IIf([field1]is null or ="",[field2],IIf([field1]and[field2]is null or ="",[field3],IIf([field1]and[field2]and[field3]is null or ="",[field4],[field1])))
I have four fields in a table with the same type of data that I want to combine into one. As a result I have set up a calculated field in a query. Some fields in the table are null and some are a zero length string. I used the following expression, and variations thereof, but it doesn't work. Could someone tell me what I did wrong?
IIf([field1]is null or ="",[field2],IIf([field1]and[field2]is null or ="",[field3],IIf([field1]and[field2]and[field3]is null or ="",[field4],[field1])))