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
-
Looking for personal finance software with budgeting capabilities
by
cellsee6
23 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
9 hours, 1 minute ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
13 hours, 22 minutes ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
21 hours, 58 minutes ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
12 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
6 hours, 20 minutes ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
17 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
2 days, 8 hours ago -
50 years and counting
by
Susan Bradley
21 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 day, 15 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
2 days, 19 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
2 days, 19 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
2 days, 19 hours ago -
OneNote and MS Word 365
by
CWBillow
2 days, 21 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
2 days, 21 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
2 days, 22 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
13 hours, 31 minutes ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
3 days, 9 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
3 days, 9 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
3 days, 18 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
3 days, 6 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
2 days, 7 hours ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
4 days, 3 hours ago -
Apple backports fixes
by
Susan Bradley
3 days, 10 hours ago -
Win 11 24H2 will not install
by
Michael1950
2 days, 7 hours ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
1 day, 1 hour ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
2 days, 16 hours ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
1 day, 4 hours ago -
Get back ” Open With” in context menus
by
CWBillow
4 days, 18 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
3 days, 10 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.