PC Review


Reply
Thread Tools Rate Thread

How do I parse an address field to separate street # from street n

 
 
=?Utf-8?B?Q0o=?=
Guest
Posts: n/a
 
      4th Apr 2006
I need to do this to each record in the table, saving the Street# and
StreetName in two fields of each record. From here, I can sort by
StreetName/Table
--
CJ
 
Reply With Quote
 
 
 
 
=?Utf-8?B?c3Bhcmtlcg==?=
Guest
Posts: n/a
 
      5th Apr 2006
Assuming that there is a space between the street number and the street name
for each record then you could update the two new fields with the following
just place this in an Access Query SQL View, replace the table and field
names with your own:

UPDATE Table1
SET Table1.StreetNum =
Left([Table1]![StreetAddress],InStr([Table1]![StreetAddress],Chr(32))-1),
Table1.StreetAddr =
Trim(Right([Table1]![StreetAddress],Len([Table1]![StreetAddress])-InStr([Table1]![StreetAddress],Chr(32))));

Take Care & God Bless ~ SPARKER ~


"CJ" wrote:

> I need to do this to each record in the table, saving the Street# and
> StreetName in two fields of each record. From here, I can sort by
> StreetName/Table
> --
> CJ

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I parse street address with 4 parts #,Dir,Street,Type CUserM Microsoft Access Queries 1 18th Aug 2009 05:24 PM
Seperate Street Number & Street Name from a complete address? None Microsoft Access 4 6th Jan 2009 07:22 PM
parsing address into house #, Street name, street type upstate-dem Microsoft Access Queries 3 2nd Feb 2007 06:31 AM
Is there a way to parse a street address in Access? =?Utf-8?B?TVBE?= Microsoft Access Queries 3 3rd Dec 2004 01:34 AM
split street number and street address gloria Microsoft Access Queries 3 9th Aug 2004 01:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 PM.