G
Guest
Access 2003 on Windows XP Pro
A common need when rebuilding a Full Name display from data fields involves
middle initials. Some people provide middle initials and some do not. The
following falls short of my objective, since when [MidInitial] is null, a
double space is created between the [FirstName] and [LastName], and that is
not desired.
=[FirstName] & " " & [MidInitial] & " " & [LastName]
Somewhere I saw a trick using the "+" sign where a null condition ignores
the extra space. I've tried the following syntax, but remain defeated.
=[FirstName] & (" ",+[MidInitial]) & [MidInitial] & " " & [LastName]
Any hints as to where I am going wrong, and the proper syntax?
...Thanks
A common need when rebuilding a Full Name display from data fields involves
middle initials. Some people provide middle initials and some do not. The
following falls short of my objective, since when [MidInitial] is null, a
double space is created between the [FirstName] and [LastName], and that is
not desired.
=[FirstName] & " " & [MidInitial] & " " & [LastName]
Somewhere I saw a trick using the "+" sign where a null condition ignores
the extra space. I've tried the following syntax, but remain defeated.
=[FirstName] & (" ",+[MidInitial]) & [MidInitial] & " " & [LastName]
Any hints as to where I am going wrong, and the proper syntax?
...Thanks