Connecting Tech Pros Worldwide Forums | Help | Site Map

Need help combining fields

Newbie
 
Join Date: Aug 2006
Posts: 1
#1: Aug 2 '06
I need to combine the following
FirstName
Middle
LastName

The results I am looking for are the First Letter of the FirstName, First Letter of the Middle, and the full LastName

I know that I can do a FirstName & Middle & Last = initials, but I don't know how to get just the first letter of the FirstName & Middle fields.

PEB's Avatar
PEB PEB is offline
Expert
 
Join Date: Aug 2006
Location: Bulgaria
Posts: 1,380
#2: Sep 3 '06

re: Need help combining fields


You can use the function left(FirstName,1)+left(MiddleName,1)+FamillyName :)
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,875
#3: Sep 4 '06

re: Need help combining fields


I would use & rather than +.

left(FirstName,1) & " " & left(MiddleName,1) & " " & FamillyName


Quote:

Originally Posted by PEB

You can use the function left(FirstName,1)+left(MiddleName,1)+FamillyName :)

Reply