Does anyone know of samples of address parsing and validation code. I would to parse American addresses to their component parts in the same way that CASS-certified software must do in order to faciliate ZIP Plus 4 look up. I do NOT need CASS-certified software however. The stored values will be put into fields for GIS software to use.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Address parsing
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Address parsing
- This topic has 7 replies, 4 voices, and was last updated 23 years, 11 months ago.
Viewing 2 reply threadsAuthorReplies-
WSPeterNRoth
AskWoody LoungerApril 27, 2001 at 5:02 am #1782716Hi Eddie –
If the address ‘fields’ are comma delimited, i assume there is no problem.
The problem is when the fields are unknown. One can make some educated guesses, but there are no guarantees. For example
123 main street anytown astate azip
or
123 apple blossom lane SE apt a-1 name of the retirement village anytown astate azipplus4etc.
What kind of case are you dealing with?
-
EddieS
GuestApril 27, 2001 at 5:20 am #1782718My idea would be to allow users to enter the address line in one continuous line (the street address line that is) and then have a function that parses the line to its component parts. According to the USPS, the majority of addresses have a proper structure, something like street number, pre-directional, street name, street type, post-directional, secondary designator (Apt, Bldg, and so) secondary address (the Apt, Bldg, and so on number). Of course, the fun comes with Rural Routes, PO Boxes and the like. The USPS recommends parsing from the right. On first brush, I can picture the process. But I was wondering if someone already has done this.
Ideally, I could allow three or more lines, including the delivery line (city, state, and zip) and parse the whole thing. Something along the lines of how MS Outlook does it.
Also, ideally if there was any point during the parsing process that was ambiguous, the user would be presented with what can be deduced programmatically, and prompted to finish the parsing. (For example, Illinois and Wisconsin have street numbers that begin with letters, not numbers (E300, E301 and so on).
-
WSPeterNRoth
AskWoody Lounger -
EddieS
GuestApril 27, 2001 at 6:02 am #1782721> Why bother…
1. Unfortunately, data entry people don’t always take the time to check it on it. The names are handwritten on petition sheets. Sometimes the address is garbled and they are making a best guess at it. Some of our offices are entering 20,000 names/addresses a year. Sometimes speed is more important than accuracy.
-
-
-
WScharlotte
AskWoody LoungerApril 27, 2001 at 7:59 am #1782726Hawaii is even worse, and Utah has addresses on a grid (24 East Temple 12 South Temple). Some companies have a whole address or zip code to themselves, and you can’t rely on the city to match the address. The spelling in the USPS database may not match the address you’ve been given, so you’ll never be able to validate it. I’ve worked with apps that attempted to do this, and they are SLOW, even the best of them. Your best best is to give the users three lines for the company name/street address and have the Enter key cause them to advance to the next field. You can waste a lot of time trying to get this right, and it probably won’t ever work as well as just letting them put it in the way it should appear. I know, because I beat my head against this same wall for over 3 years before I learned my lesson.
-
WSplang99
AskWoody LoungerApril 27, 2001 at 6:21 pm #1782746A third party software might help. some were for names but might work for addresses. One is ParseRat and the other is Splitter 2000.
http://www.users.bigpond.com/wemba/splitter.htm
http://www.zdnet.com/downloads/stories/info/0,,0017U8,.html
Do a search for ParseRat.WSplang99
AskWoody LoungerApril 27, 2001 at 6:29 pm #1782748Look for a Third Party Utility that might be adapted for addresses instead of names.
Splitter 2000
From InfoPlan
http://www.users.bigpond.com/wemba/splitter.htm
http://www.zdnet.com/downloads/stories/info/0,,0017U8,.htmlParseRat
You might try Excel’s Text to Column feature. Have plenty of blank columns to the right. Back up the Excel file before you try. You can then copy/paste more than one cell into new fields. Then do an update query from Excel into Access.
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
DDU (Display Driver Uninstaller) updates
by
Alex5723
1 hour, 33 minutes ago -
Align objects on a OneNote page
by
CWBillow
3 hours, 13 minutes ago -
OneNote Send To button?
by
CWBillow
3 hours, 57 minutes ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
12 hours, 30 minutes ago -
No Newsletters since 27 January
by
rog7
8 hours, 27 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
16 hours, 59 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 hour, 2 minutes ago -
Google One Storage Questions
by
LHiggins
51 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
14 hours, 35 minutes ago -
Ancient SSD thinks it’s new
by
WSila
11 hours, 35 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
20 hours, 38 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
11 hours, 16 minutes ago -
Firefox 137
by
Charlie
7 hours, 35 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
1 day, 15 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
1 day, 15 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
1 day, 15 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
11 hours, 45 minutes ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
1 day, 19 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
2 days, 1 hour ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
2 days, 11 hours ago -
Office apps read-only for family members
by
b
2 days, 14 hours ago -
Defunct domain for Microsoft account
by
CWBillow
2 days, 11 hours ago -
24H2??
by
CWBillow
11 hours, 38 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
7 hours, 32 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
11 hours, 29 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
1 day, 10 hours ago -
two pages side by side land scape
by
marc
4 days, 12 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
4 days, 14 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
3 days, 17 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.