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
-
A Funny Thing Happened on the Way to the Forum
by
bbearren
4 hours, 23 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
10 hours, 5 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
9 hours, 5 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
7 hours, 29 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
8 hours, 12 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
16 hours, 54 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
16 hours, 54 minutes ago -
23 and you
by
Max Stul Oppenheimer
5 hours, 10 minutes ago -
April’s deluge of patches
by
Susan Bradley
9 hours, 22 minutes ago -
Windows 11 Windows Updater question
by
Tex265
15 hours, 8 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 14 hours ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 18 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day, 1 hour ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
10 hours, 25 minutes ago -
Align objects on a OneNote page
by
CWBillow
2 days ago -
OneNote Send To button?
by
CWBillow
2 days ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
2 days, 9 hours ago -
No Newsletters since 27 January
by
rog7
13 hours, 52 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day, 9 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 day, 8 hours ago -
Google One Storage Questions
by
LHiggins
16 hours, 28 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
23 hours, 44 minutes ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 14 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
3 days ago -
WinRE KB5057589 fake out
by
Susan Bradley
10 hours, 42 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
2 days, 8 hours ago -
Firefox 137
by
Charlie
1 hour, 2 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 12 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 12 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 12 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.