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  

Reverse first & last names in a database



 
 
Thread Tools Display Modes
  #1  
Old April 2nd, 2005, 08:55 PM
Busy in Paradise
external usenet poster
 
Posts: n/a
Default Reverse first & last names in a database

I downloaded names and addresses for a mailing list from a property
appraisers' website, and created an Access Database using the information.
The names and addresses, as well as other pertinent information, are comma
delineated on the property appraiser's website. However, the last name is
first, and the first name is last. Is there a way to reverse the names
either in Access or in Notepad (which is where the downloaded information is
saved until it is imported into Access), so when I print the envelope, the
name appears as it should, i.e. John L. Doe, instead of Doe John L? Thank
you for any help you can give me.
  #2  
Old April 3rd, 2005, 04:54 AM
Steve Schapel
external usenet poster
 
Posts: n/a
Default

Busy in Paradise,

Do you mean that the first name and last name are in separate fields, or
both in the same field (i.e. both enclosed within the one comma in the
comma delimited data)? If they are separate, you actually don't have a
problem, but just thought I would check your meaning. If they are in
the same field, you can run an Update Query to update YourAddressField to...
Mid([YourAddressField],InStr([YourAddressField]," ")+1) & " " &
Left([YourAddressField],InStr([YourAddressField]," ")-1)
This will work for most names, but not in the case of Lastnames with 2
words such as De Vinci and Von Sturmer.

--
Steve Schapel, Microsoft Access MVP


Busy in Paradise wrote:
I downloaded names and addresses for a mailing list from a property
appraisers' website, and created an Access Database using the information.
The names and addresses, as well as other pertinent information, are comma
delineated on the property appraiser's website. However, the last name is
first, and the first name is last. Is there a way to reverse the names
either in Access or in Notepad (which is where the downloaded information is
saved until it is imported into Access), so when I print the envelope, the
name appears as it should, i.e. John L. Doe, instead of Doe John L? Thank
you for any help you can give me.

 




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
Encrypt AccesS File? milest General Discussion 2 February 9th, 2005 07:58 PM
Images in a database Franz General Discussion 10 October 7th, 2004 09:35 AM
Database Window Gone DaveB General Discussion 2 July 29th, 2004 12:24 AM


All times are GMT +1. The time now is 04:51 PM.


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