I’m trying to amalgamate a few address feilds into one text box on a report:
=[City]+", "+[County]+", "+[Post Code]
However not all records have an entry in the [County] column, which means that nothing shows in the textbox at all for these records. So I tried an Iif statement:
=IIf([County],[City]+", "+[County]+", "+[Post Code],[City]+", "+[Post Code])
This didn’t work, how can I make the text box show whatever fields are present?
You were so close!
should be:
Remember, a NULL trumps everything in math, so using the plus operator was giving you a NULL result every time any field was blank.