[mso] Access 2000 removing many towns?

  • From: Robert Carneal <carnealre@xxxxxxxxxxxx>
  • To: mso@xxxxxxxxxxxxx
  • Date: Sun, 10 Jun 2007 16:35:26 -0500

Suppose I have an access file containing a table that contains places 
like the following:

Maine, York County, Dayton
Florida, Miami-Dade County, Miami Beach
Illinois, Bureau County
Kentucky
Mississippi, Claiborne County
Illinois, Peoria County, Brimfield
Iowa, Polk County, West Des Moines
Tennessee


Is there an easy easy to check all that and if any field has something 
more than just the state and county, strip off the town / city so that 
it reads:
Maine, York County
Florida, Miami-Dade County
Illinois, Bureau County
Kentucky
Mississippi, Claiborne County
Illinois, Peoria County
Iowa, Polk County
Tennessee

Possible? I thought about exporting to Excel, and do a "Text to Columns" 
function, but the file is more than 70,000 rows deep. Simply put, what 
would be the fastest way to locate the second comma, and starting with 
the second comma itself, delete everything from the second comma to the 
end of the field?

Thank you.

Robert
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: