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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create email address

Status
Not open for further replies.

jmhicsupt

MIS
Oct 22, 2005
49
0
0
US
I have employee's name in one field. The field is displayed as doe, john. I now need to display the field as john.doe.

How would I do this?

Thanks in advance.
 
You may try to use the Replace function:
Replace([employee's name field], ', ', '.')

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
doe, john to john.doe:

Code:
SELECT t.name
, mid(t.[name], Instr(t.[name], ",")+2) & "." & left(t.[name], Instr(t.[name], ",")-1) as NewName

FROM tblYourtable as t

~Melagan
______
"It's never too late to become what you might have been.
 
OOps, sorry, missed the FirstName LastName inversion ...
 
No worries PH - I only applied what I learned from your posts to answer the question in the first place!

~Melagan
______
"It's never too late to become what you might have been.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top