I am trying to concatenate Title, FirtsName, MI & LastName in Access. I have created and expressions but small concern.
There are few people dont have a MI so using the first syntax, it get ommited for null MI's
Syntax 1:
select FullName: [Title]+' '+[FirstName]+' '+[MI]+'. '+[LastName] from EmpTable
or
and error for this syntax.
Syntax 2:
select FullName: [Title]+' '+[FirstName]+' '+IsNull([MI])+'. '+[LastName] from EmpTable
Any help would be appreciated.
Thanks
Dr.Sql
Good Luck.
There are few people dont have a MI so using the first syntax, it get ommited for null MI's
Syntax 1:
select FullName: [Title]+' '+[FirstName]+' '+[MI]+'. '+[LastName] from EmpTable
or
and error for this syntax.
Syntax 2:
select FullName: [Title]+' '+[FirstName]+' '+IsNull([MI])+'. '+[LastName] from EmpTable
Any help would be appreciated.
Thanks
Dr.Sql
Good Luck.