G
Guest
What is the difference, if any, between these two operators? (When
concatenating strings).
Just curious.
Thanks
concatenating strings).
Just curious.
Thanks
PJ said:What is the difference, if any, between these two operators? (When
concatenating strings).
Marshall Barton said:The major difference is the way Null is propogated.
"X" + Null results in Null
"X" & Null results in "X"
This can be useful when you want to show/hide some
delimiter. E.g.
=LastName & (", " + FirstName)
will not include the comma when FirstName is Null.
It is best to use & except when you want to do something
like the above so you don't confuse it with + as the
addition operator.