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

Seperate Names?

Status
Not open for further replies.

Ielamrani

MIS
Jul 7, 2005
183
US
Hi,
i have a name like this:

Smith John

I would like to seperate smith from John. In other words put Smith in one field and John in another field. There is a space between smith and John.

Thanks

Ismail
 
Ismail
In a query create two new columns.

One, to isolate the first name, will have the following expression...
Left([MyName],InStr([MyName]," ")-1)

The other, to isolated the last name will have the following expression...
Mid([MyName],InStr([MyName]," ")+1)

Tom
 
Ismail
Sorry, I should have indicated to change [MyName] to whatever your field, that contains the names, is called.

Tom
 
thank you soooo much. I did change MyName to my field name.

Ismail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top