Results 1 to 5 of 5
  1. #1
    ampstar is offline Novice
    Windows XP Access 2000
    Join Date
    Aug 2014
    Posts
    3

    Street Address with alphanumeric

    Hi All,

    I have a database that I inherited that has street address backwards and with spaces.



    Example1. E SEASIDE ST 64 1/2
    Example2. MAIN ST 154
    Example3. BOSTON POST RD 25

    There are about 50,000 records and I am able to create a function to take out the whole numeric number like 62 or 154 but have issues with street names and streets that are like E for east W for west. I am not the greatest at Access and I am still learning so any help or insight would be great.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,894
    And what about numbered streets:

    64th Ave 213A

    Are you trying to extract and populate another field?

    Parsing text is common topic. With inconsistent structure, NO code can catch everything, too much variability. Program for the situations you know and can fix without corrupting data and then case-by-case evaluate the rest.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ampstar is offline Novice
    Windows XP Access 2000
    Join Date
    Aug 2014
    Posts
    3
    I only have a few streets that are numeric street names (about 20), so I can handle those by hand. I can handle the ones with 1/2 in street address too. Its the bulk remainder I have an issue with.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,894
    Fixing bad data can be a long and tedious and repetitive exercise. But hopefully you only have to do it once.

    Filter dataset for known issue, such as the / character. Fix them.

    Repeat for next issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ampstar is offline Novice
    Windows XP Access 2000
    Join Date
    Aug 2014
    Posts
    3
    I was able to work around most of the data by using the follow query Street_Num: Mid(Place!Street,InStrRev(Place!Street," ")+1) to get street number and Street_Name: Left(Place!Street,InStr(Place!Street," ")+3) to get street name. It works for about 90% of my records, but if anybody else can give me a better way I welcome it. Thanks

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 08-22-2013, 12:02 AM
  2. Get Mac Address
    By Mclaren in forum Programming
    Replies: 4
    Last Post: 05-02-2010, 12:34 PM
  3. Replies: 1
    Last Post: 10-07-2009, 08:15 AM
  4. Input Mask for an IP Address and Mack Address
    By baksg1995 in forum Access
    Replies: 18
    Last Post: 06-23-2009, 12:33 PM
  5. Separating Street Number from Street
    By NGallone in forum Queries
    Replies: 0
    Last Post: 10-29-2008, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums