selecting part of a field after a blank space

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

Guest

I'm trying to select a street name from the address field containing both the
address numbers as well as the street name. 1234 32nd Street, or 45697
Harold Drive. I want to extract the 32nd Street or Harold Drive so
everything after the first blank space. I hope that's clear! Any help would
be appreciated. Thanks in advance.
 
Use Instr() to locate the first space, and Mid() to get all the remaining
text

Rough example:
Trim(Mid([Address], Instr([Address], " ")+1))
 
Thank you very much!

Allen Browne said:
Use Instr() to locate the first space, and Mid() to get all the remaining
text

Rough example:
Trim(Mid([Address], Instr([Address], " ")+1))

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

kim said:
I'm trying to select a street name from the address field containing both
the
address numbers as well as the street name. 1234 32nd Street, or 45697
Harold Drive. I want to extract the 32nd Street or Harold Drive so
everything after the first blank space. I hope that's clear! Any help
would
be appreciated. Thanks in advance.
 

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