G
Guest
I have a calculated field in a query. I need it to return the contents of field2, if field1 is null, return the contents of field3, if field1 and field2 both are null, return the contents of field4, if field1,and field2, and field3 are null, otherwise return the contents of field1. I have tried the following with no luck:
EXP: IIf([field1] is null, [field2],IIf [field1] and [field2] is null, [field3], IIf [field1] and [field2] and [field3] is null,[field4],[field1])))
I get the correct results with EXP: IIf([field1] is null, [field2],[field1]) But I can't bring it any further. Any help will be appreciated.
EXP: IIf([field1] is null, [field2],IIf [field1] and [field2] is null, [field3], IIf [field1] and [field2] and [field3] is null,[field4],[field1])))
I get the correct results with EXP: IIf([field1] is null, [field2],[field1]) But I can't bring it any further. Any help will be appreciated.