Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenate Field 2

Status
Not open for further replies.

Jimmy2128

Programmer
Feb 6, 2003
58
0
0
US
I have the following scenario:

FullName:[FNAME] & " " & [MNAME] & " " & [LNAME] & " ," & [DESIGNATION]

I want to add a comma after LNAME when the members has DESIGNATION field but if the DESIGNATION field is blank do not use the comma.

Example:
John Doe, PHD
Marie Doe, (without the comma)

How can I do that...THanks

Jimmy
 
Jimmy
Try this...

FullName:[FNAME] & " " & [MNAME] & " " & [LNAME] & IIf(IsNull([DESIGNATION]),"", " ," & [DESIGNATION])

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top