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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 ~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top