Results 1 to 6 of 6
  1. #1
    smonczka is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2016
    Posts
    1

    Zip Code Lookup and Compare

    I have a client who as an Access 2016 database of locations (including name, full address and phone for each). They would like to be able to search for the nearest zip code to one of the locations. In other words enter a random zip code and then search the list and return the locations that are nearest to it. Much like you might search for the nearest store to you on on a web site by entering in your zip code.

    Is this possible? Is there a third party add on that might do it?

    Thanks


    Steve

  2. #2
    ineuw's Avatar
    ineuw is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Location
    Canada
    Posts
    33
    For similar zip codes, a simple query would do as follows: Place the following code in a query's Parameters field Like "123*" This will search for all zip codes beginning with 123. The more zip code digits you provide the narrower of the zip code range will be e.g: Like "1234*" etc.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    Have you determined an approach you might use to get the nearest store ? It is an interesting exercise.
    There are some formulas here that may be helpful.
    It says excel, but they are vba and can be used with Acccess.

  4. #4
    ineuw's Avatar
    ineuw is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Location
    Canada
    Posts
    33
    Quote Originally Posted by orange View Post
    Have you determined an approach you might use to get the nearest store ? It is an interesting exercise.
    There are some formulas here that may be helpful.
    It says excel, but they are vba and can be used with Acccess.
    Postal and Zip codes are geocoded and in fact are planned from satellite images. This means that the US postal service provides/sells this info. If not, the USPS, then there are private companies who specialize in address management sell this info as well. From and old postal & zip code programmer.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    Agreed, in Canada it is Canada Post that sells a service to maintain Postal Codes - additions, deletions, modifications.
    Still, as you are aware, finding the nearest store to a given Postal code is not picked from a table.

    The scenario I worked in was ---given a major disaster at this location, who are the closest suppliers of Prod X, Y and Z. What are their coordinates. Closest could mean anything from 0 to 200+ miles..

    My concern was - How much analysis has smonczka done?

  6. #6
    ineuw's Avatar
    ineuw is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Location
    Canada
    Posts
    33
    I know that a list of zip/postal code ranges is useless without a map of coordinates and perhaps some GPS software.

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

Similar Threads

  1. Replies: 4
    Last Post: 03-17-2016, 07:16 AM
  2. lookup code
    By Bkndbrown in forum Programming
    Replies: 7
    Last Post: 11-11-2015, 12:26 PM
  3. Replies: 3
    Last Post: 05-08-2015, 11:08 AM
  4. Display lookup value in form, not code.
    By lggerhard in forum Forms
    Replies: 2
    Last Post: 09-10-2014, 06:57 PM
  5. How to do line by line compare of VB code?
    By Buakaw in forum Access
    Replies: 2
    Last Post: 02-14-2011, 11:46 PM

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