[mso] Re: Access 2000 removing many towns?
- From: Cathy.Evans@xxxxxxxxx
- To: mso@xxxxxxxxxxxxx
- Date: Mon, 11 Jun 2007 10:01:34 -0400
Try variations of the solution posted at the first link below. I tried it
with your data, replacing the "/" with ",", and trying Mid$, Left$ and
Right$, and it looks like you may be able to split out your data using this
idea, or using it with a combination of iif statement, such as below. Not
sure if this is the direction you need, but it looked promising.
There was also an interesting discussion at the second link below that you
may find of value. Hope something helps get you in the right direction.
Expr:
IIf(Trim(Mid$([Field1],InStrRev([Field1],",")))="","Something","Something
Else")
http://www.utteraccess.com/forums/showflat.php?Cat=&Board=8&Number=1430638&Zf=&Zw=trim&Zg=0&Zl=a&Main=1430601&Search=true&where=&Zu=&Zd=g&Zn=&Zt=59&Zs=a&Zy=#Post1430638&Zp=
http://www.utteraccess.com/forums/showflat.php?Cat=&Board=90&Number=1431836&Zf=&Zw=trim&Zg=0&Zl=a&Main=1431209&Search=true&where=&Zu=&Zd=g&Zn=&Zt=59&Zs=a&Zy=#Post1431836&Zp=
Robert Carneal
<carnealre@xxxxxxxxxx
et>
To
Sent by: mso@xxxxxxxxxxxxx
mso-bounce@freelists.
cc
org
06/10/07 05:35 PM
Subject
Please respond to mso [mso] Access 2000 removing
many towns?
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).
http://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
*************************************************************
------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain
proprietary, business-confidential and/or privileged material.
If you are not the intended recipient of this message you are
hereby notified that any use, review, retransmission, dissemination,
distribution, reproduction or any action taken in reliance upon
this message is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.
Any views expressed in this message are those of the individual
sender and may not necessarily reflect the views of the company.
------------------------------------------------------------
*************************************************************
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).
http://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
*************************************************************
- References:
- [mso] Access 2000 removing many towns?
- From: Robert Carneal
Other related posts:
- » [mso] Access 2000 removing many towns?
- » [mso] Re: Access 2000 removing many towns?
- [mso] Access 2000 removing many towns?
- From: Robert Carneal