BHScripter
Technical User
Hi I am trying to concatenate text fields which contain names. I want it to take the main person and then if that person has roommates to add those behind the main person like so:
Mike Brown, Jim Smith, Matt Jones
However, if the roommate fields are null I don't want to see anything behind the main person. I have the following formula and I can't figure out what I'm missing. When the roommates are null I'm getting:
Mike Brown,,,,,,
The following is my formula syntax
{ado.sname}+IIF(isnull({ado.sroom1}),"",", "+{ado.sroom1})
+IIF(isnull({ado.sroom2}),"",", "+{ado.sroom2})
+IIF(isnull({ado.sroom3}),"",", "+{ado.sroom3})
+IIF(isnull({ado.sroom4}),"",", "+{ado.sroom4})
+IIF(isnull({ado.sroom5}),"",", "+{ado.sroom5})
+IIF(isnull({ado.sroom6}),"",", "+{ado.sroom6})
Thanks in advance,
Brianna
Mike Brown, Jim Smith, Matt Jones
However, if the roommate fields are null I don't want to see anything behind the main person. I have the following formula and I can't figure out what I'm missing. When the roommates are null I'm getting:
Mike Brown,,,,,,
The following is my formula syntax
{ado.sname}+IIF(isnull({ado.sroom1}),"",", "+{ado.sroom1})
+IIF(isnull({ado.sroom2}),"",", "+{ado.sroom2})
+IIF(isnull({ado.sroom3}),"",", "+{ado.sroom3})
+IIF(isnull({ado.sroom4}),"",", "+{ado.sroom4})
+IIF(isnull({ado.sroom5}),"",", "+{ado.sroom5})
+IIF(isnull({ado.sroom6}),"",", "+{ado.sroom6})
Thanks in advance,
Brianna