473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can I extract a street address using a query?

Does anyone know how to create a query that will separate the street number
from the street name?

Eg.
current address field = 14 Main Street, unit 4

but I want to get:
streetno = 14
streetname = Main Street

--
Regards,
Peter

Nov 12 '05 #1
2 6169
Peter,

Look at the Instr function and Left function to get the street number. Use the
Instr function to find the position of the first space and the Left function to
return everything before the first space.

To get the street name, use the Instr function to see if there is comma in the
address and use the Mid function with the first Instr function to get the street
name.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com
"wolftor" <wo*****@rogers.com> wrote in message
news:hr*******************@twister01.bloor.is.net. cable.rogers.com...
Does anyone know how to create a query that will separate the street number
from the street name?

Eg.
current address field = 14 Main Street, unit 4

but I want to get:
streetno = 14
streetname = Main Street

--
Regards,
Peter

Nov 12 '05 #2
Can anyone help?

"wolftor" <wo*****@rogers.com> wrote in message
news:hr*******************@twister01.bloor.is.net. cable.rogers.com...
Does anyone know how to create a query that will separate the street number
from the street name?

Eg.
current address field = 14 Main Street, unit 4

but I want to get:
streetno = 14
streetname = Main Street

--
Regards,
Peter


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: David Chang | last post by:
I am trying to do some analysis on customer's locality, so I'd like to extract numeric part from address. Here is how the table looks like Table Member first_name last_name address1 ...
1
by: Robert Marshall | last post by:
Hi all, Hoping someone can help me with an issue I'm having. I'm using AccessXP to create a database of U.S. Census records. After keying the data in, I decided to run a query to create a...
7
by: Raphi | last post by:
Hi, I'm trying to clean up a large database in Access. I have one field for address, which needs to be broken up into Street Number, Street Name, and Street Label (St., Road, etc.) The...
4
by: Tom Warren | last post by:
About once a year or so for the last 10 years, I update my street address parser and I'm starting to look at it again. This parser splits a street address line into its smallest common elements...
3
by: Steven | last post by:
Following is the string ... <ADDRESSINFO name = "Cedar Ave" no = "21123" attrib ="visible"> <HOUSE name ="main" type ="1" value ="2200"/> <HOUSE name ="slide" type ="12" value ="123"/> <HOUSE...
4
by: Robert Fitzpatrick | last post by:
Thanks to some help here on the list, I've been able to get addresses sorting pretty well, but now I have a issue with same addresses on different streets not grouping the streets. This is what I'm...
2
by: Zeya | last post by:
I need to find and replace US street address from HTML files in C# into something like this: street address , how can I do this using C# and Regular expression? Thanks.
1
by: rcamarda | last post by:
I'd need to have a function that allows me to extract 'fields' from within the string I.E. (kinda pseudo code) declare @foo as varchar(100) set @foo = "Robert*Camarda*123 Main Street" select...
4
by: HowHow | last post by:
Using Access 2000. I need to group the address by suburb then by street name in my report. Two major problems here: 1. Unit number has the word "Unit" before number 2. Semi detach house has "a"...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.