 | 
28-Jul-2006, 08:28 AM
|  | Guest | | | | | | | | | | Data Conversion Manual Line Break I'm converting data from an old SQL back-end that has the Address field
containing the street, city, state and zip AND Fields that contain the city,
the State and the ZipCodes. I would like to parse out the citystatezip and
just have the street address. There is a manual line break between the street
and the CityStateZip in the Address field, but I cannot use it effectively. I Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/12410-data-conversion-manual-line-break.htmlReference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12410
have been using Edit - Replace to remove the information based on "city,*"
but there are a lot of different citys and they are not accurately spelled.
Any suggestions? Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh! | 
28-Jul-2006, 08:28 AM
|  | Guest | | | | | | | | | | Re: Data Conversion Manual Line Break Hi Jim,
first try creating a select query with the info you would
like to keep
on the grid, put
field --> Address
criteria --> Like "*" & Chr(13) & "*"
field --> JustAddress:
Left([address],InStr([address],Chr(13))-1)
if this gets what you want, then you can make it an update query
from the menu --> Query, Update
in the UpdateTo cell under Addresses -->
Left([address],InStr([address],Chr(13))-1)
if you want the city, state, and zip, move them to another
field before you strip them off
Warm Regards,
Crystal
Microsoft Access MVP 2006
*
Have an awesome day Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12410
remote programming and training
strive4peace2006 at yahoo.com
* Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12410
JimMurray wrote:
> I'm converting data from an old SQL back-end that has the Address field
> containing the street, city, state and zip AND Fields that contain the city,
> the State and the ZipCodes. I would like to parse out the citystatezip and
> just have the street address. There is a manual line break between the street
> and the CityStateZip in the Address field, but I cannot use it effectively. I
> have been using Edit - Replace to remove the information based on "city,*"
> but there are a lot of different citys and they are not accurately spelled.
> Any suggestions?
> | 
28-Jul-2006, 08:28 AM
|  | Guest | | | | | | | | | | RE: Data Conversion Manual Line Break Try using InStr the ASCII code for the manual line break to parse the data. Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12410
"JimMurray" wrote:
> I'm converting data from an old SQL back-end that has the Address field
> containing the street, city, state and zip AND Fields that contain the city,
> the State and the ZipCodes. I would like to parse out the citystatezip and
> just have the street address. There is a manual line break between the street Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12410
> and the CityStateZip in the Address field, but I cannot use it effectively. I
> have been using Edit - Replace to remove the information based on "city,*"
> but there are a lot of different citys and they are not accurately spelled.
> Any suggestions?
> | 
28-Jul-2006, 08:28 AM
|  | Guest | | | | | | | | | | Re: Data Conversion Manual Line Break ps
if chr(13) doesn't get anything, try chr(10)
Warm Regards,
Crystal
Microsoft Access MVP 2006
*
Have an awesome day
remote programming and training
strive4peace2006 at yahoo.com
*
strive4peace wrote:
> Hi Jim,
>
> first try creating a select query with the info you would like to keep
>
> on the grid, put
>
> field --> Address
> criteria --> Like "*" & Chr(13) & "*"
>
> field --> JustAddress: Left([address],InStr([address],Chr(13))-1)
>
>
> if this gets what you want, then you can make it an update query
>
> from the menu --> Query, Update
>
> in the UpdateTo cell under Addresses -->
> Left([address],InStr([address],Chr(13))-1)
>
> if you want the city, state, and zip, move them to another field before
> you strip them off
>
> Warm Regards,
> Crystal
> Microsoft Access MVP 2006
>
> *
> Have an awesome day  Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12410
>
> remote programming and training
> strive4peace2006 at yahoo.com
>
> *
>
> JimMurray wrote: Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=12410
>
>> I'm converting data from an old SQL back-end that has the Address
>> field containing the street, city, state and zip AND Fields that
>> contain the city, the State and the ZipCodes. I would like to parse
>> out the citystatezip and just have the street address. There is a
>> manual line break between the street and the CityStateZip in the
>> Address field, but I cannot use it effectively. I have been using Edit
>> - Replace to remove the information based on "city,*" but there are a
>> lot of different citys and they are not accurately spelled. Any
>> suggestions?
>> | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Active Discussions | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |