Gotta go along with you on this!
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com www.pcdatasheet.com
"Bruce Rusk" <brusk_spambegone_@stanford.edoo> wrote in message
news:8vSdnbwumdnFEr3eRVn-uA@comcast.com...[color=blue]
> Too risky -- there are also Spanish names in the Southwest that have
> two-letter words in them (El Paso, Santa Fe, etc. .. can you be *sure*
> you've got all of them?) ... Bob's Instrrev solution is safer and more
> elegant.
>
>
> "PC Datasheet" <nospam@nospam.spam> wrote in message
> news:qb_Te.9400$FW1.38@newsread3.news.atl.earthlin k.net...[color=green]
>> Exclude At, In, Of and To should take care of this.
>>
>> --
>> PC Datasheet
>> Your Resource For Help With Access, Excel And Word Applications
>>
resource@pcdatasheet.com
>>
www.pcdatasheet.com
>>
>>
>> "Bruce Rusk" <brusk_spambegone_@stanford.edoo> wrote in message
>> news:3cWdnasYh_ZIGYLeRVn-jQ@comcast.com...[color=darkred]
>>> Careful... that won't work with cities whose name contains two-letter
>>> words (e.g., "City of Industry, CA" "Lake of the Woods, MN")
>>>
>>> "PC Datasheet" <nospam@nospam.spam> wrote in message
>>> news:UyJTe.8425$9i4.483@newsread2.news.atl.earthli nk.net...
>>>> If you are still looking for a solution ----
>>>>
>>>> Use the Instr function to find "spaceXXspace" where XX can be any two
>>>> alpha characters. Everything to the left of that string is City
>>>> (doesn't matter whether two words or one) and everthing to the right of
>>>> that string is the zip (doesn't matter whether 5 digit or 9 digit. The
>>>> state is the two caharacters between the spaces in that string.
>>>>
>>>> --
>>>> PC Datasheet
>>>> Your Resource For Help With Access, Excel And Word Applications
>>>>
resource@pcdatasheet.com
>>>>
www.pcdatasheet.com
>>>>
>>>>
>>>> "MLH" <CRCI@NorthState.net> wrote in message
>>>> news:io2uh1h3vmmolu8tstkh56a3eakv87noco@4ax.com...
>>>>>I have a bunch of what you see below in a field
>>>>> named CSZ. I want to parse it the easiest way
>>>>> possible. I just don't know where to start...
>>>>>
>>>>> CSZ
>>>>> Anchorage AK 99518-3051
>>>>> Anchorage AK 99518-3051
>>>>> Juneau AK 99801-6917
>>>>> Palmer AK 99645
>>>>> Kenai AK 99611-1753
>>>>> Fairbanks AK 99709-5008
>>>>> Ketchikan AK 99901-1291
>>>>> Smiths Station AL 36877-3700
>>>>> Florence AL 35631-0419
>>>>> Gadsden AL 35901-3006
>>>>> Huntsville AL 35805-4106
>>>>> Scottsboro AL 35768-0130
>>>>> Albertville AL 35950-1775
>>>>>
>>>>> Some city names are comprised of 2 words.
>>>>> All states are 2-char abbreviations. Some zips
>>>>> are 5-digit while others are ZIP+4. Any ideas???
>>>>
>>>>
>>>
>>>[/color]
>>
>>[/color]
>
>[/color]