CrystalUser1
Programmer
Hi,
I am using crystal reports 8.5 and I wrote the following formula to display the concatenated employee name:
If there is a middle name, the formula displaying null. I am not sure if I have to " " values also.
If there is no middle name, then it is showing concatenated first name and last name.
Can anybody help me to solve why its not showing the concatenated name if there is a middle name?
if ((isnull({emp.emp_FNAME})) and (isnull({emp.emp_MNAME}))and (isnull({emp.emp_LNAME})))
then ""
else if isnull({emp.emp_MNAME})
then
{emp.emp_FNAME} +" "+{emp.emp_LNAME}
else if isnull({emp.emp_FNAME})
then {emp.emp_LNAME} +" "+ {emp.emp_MNAME}
else if isnull({emp.emp_LNAME})
then {emp.emp_FNAME} +" "+{emp.emp_MNAME}
Thanks in advance.
I am using crystal reports 8.5 and I wrote the following formula to display the concatenated employee name:
If there is a middle name, the formula displaying null. I am not sure if I have to " " values also.
If there is no middle name, then it is showing concatenated first name and last name.
Can anybody help me to solve why its not showing the concatenated name if there is a middle name?
if ((isnull({emp.emp_FNAME})) and (isnull({emp.emp_MNAME}))and (isnull({emp.emp_LNAME})))
then ""
else if isnull({emp.emp_MNAME})
then
{emp.emp_FNAME} +" "+{emp.emp_LNAME}
else if isnull({emp.emp_FNAME})
then {emp.emp_LNAME} +" "+ {emp.emp_MNAME}
else if isnull({emp.emp_LNAME})
then {emp.emp_FNAME} +" "+{emp.emp_MNAME}
Thanks in advance.