A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

change a first-last to last, first



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2005, 04:07 AM
_Bigred
external usenet poster
 
Posts: n/a
Default change a first-last to last, first

Using Access 2000

I have a db with every single player that has ever played with the Milw.
Brewers.

But this table has the Player's Name

All in one field like such: John Doe (just a space between the first
& last name).

Is there a way to seperate this into two fields OR flip it and include a
comma
so it would either be
Last Name First Name
Doe John OR Doe,John

TIA,
_Bigred


  #2  
Old May 18th, 2005, 06:53 AM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

Is the data always consistent? If so you can add two new fields and use an
update query which updates the new fields with expressions like:
Left([PlayerName], Instr([PlayerName]," ")-1)
and
Mid([PlayerName], Instr([PlayerName]," ")+1)
I would recommend against putting these back into one field. Store "Gorman"
and "Thomas" rather than "Thomas, Gorman".

--
Duane Hookom
MS Access MVP from WI


"_Bigred" wrote in message
...
Using Access 2000

I have a db with every single player that has ever played with the Milw.
Brewers.

But this table has the Player's Name

All in one field like such: John Doe (just a space between the
first & last name).

Is there a way to seperate this into two fields OR flip it and include a
comma
so it would either be
Last Name First Name
Doe John OR Doe,John

TIA,
_Bigred




  #3  
Old May 18th, 2005, 02:57 PM
_Bigred
external usenet poster
 
Posts: n/a
Default

Thanks Duane, I will check this out and let you know if it fix my issue.

_Bigred


"Duane Hookom" wrote in message
...
Is the data always consistent? If so you can add two new fields and use an
update query which updates the new fields with expressions like:
Left([PlayerName], Instr([PlayerName]," ")-1)
and
Mid([PlayerName], Instr([PlayerName]," ")+1)
I would recommend against putting these back into one field. Store
"Gorman" and "Thomas" rather than "Thomas, Gorman".

--
Duane Hookom
MS Access MVP from WI


"_Bigred" wrote in message
...
Using Access 2000

I have a db with every single player that has ever played with the Milw.
Brewers.

But this table has the Player's Name

All in one field like such: John Doe (just a space between the
first & last name).

Is there a way to seperate this into two fields OR flip it and include a
comma
so it would either be
Last Name First Name
Doe John OR Doe,John

TIA,
_Bigred






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the company name and user name in the About window after you install Office 2000 [email protected] General Discussions 0 May 11th, 2005 03:13 PM
Change value for multiple columns? MN Running & Setting Up Queries 8 October 22nd, 2004 03:11 PM
How can I Change recurrence settings with OUT updating details???? Shawn Anderson General Discussion 3 September 20th, 2004 06:38 PM
change regional Settings To UK currency format from a shared hosting server in Germany... Edward General Discussion 1 September 19th, 2004 11:36 AM
A change of track changes Lorrie Formatting Long Documents 1 June 12th, 2004 02:32 AM


All times are GMT +1. The time now is 07:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.