I'm a bit slow on the uptake. 8 days later this is still puzzling me...
I love this trick - truly - and it solved my problem beautifully, but I have
another question.
When writing an expression in Access, as I understand it, whatever lies
between quotation marks is to be displayed by Access as literal characters.
The expression you gave me worked beautifully, but I'm trying to understand
why it does.
I understand this expression to still include the literal characters - a
comma followed by a single space. (These are enclosed within the quotation
marks). Does the Null following this essentially tell Access to disregard
the literal characters which follow the ampersand?
Allen Browne said:
Try:
=[lastname] & ", " + [firstname]
There is a subtle difference between the 2 concatenation operators:
"A" + Null => Null
"A" & Null => "A"
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
Sue said:
I have a field in my report -
=[lastname] & ", " & [firstname]
I'd like to suppress the ", " when there is no first name... some of my
contacts are offices/businesses/departments & don't have first names.
Any way to do this???
Thanks