Results 1 to 3 of 3
  1. #1
    CarolR is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    4

    Calculating distance in access?


    Hi everyone. Before I design an application in Access, I need to know if a certain task is even possible. I have a table of Physicians containing their names and addresses. What I would like to accomplish is to be able to provide an entry screen that would allow a user to input their zip code and have Access search for the physicians with a 1) 5 mile radius 2) 10 mile radius, etc. Is this even possible within Access?

    Thank you.

    I might add I'm an average Access user - no VBA experience, but will be learning.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    This would require a table of records pairing each physician address with every possible user address and the distance between the two. Impractical to the point of impossible. Geospatial proximity analysis is a function of software like ESRI ArcGIS (cost is thousands) and MS MapPoint ($299) and online mapping like Google Earth, Google Map.

    Might be able to incorporate Google Maps into a web control on form and do interactive search on the map.
    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
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I created and recently updated a sample database for this type of request. Please see post 38 at http://www.access-programmers.co.uk/...d.php?t=225339 for the latest database.

    You will gain some insight by reviewing all the posts in the thread.
    Post back if you have questions.

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

Similar Threads

  1. Calculating distance between 2 zip codes
    By crowegreg in forum Programming
    Replies: 7
    Last Post: 06-13-2016, 07:20 PM
  2. Calculate distance using fields in form
    By wnicole in forum Access
    Replies: 1
    Last Post: 09-28-2013, 09:05 AM
  3. Google Distance Matrix API
    By rbiggs in forum Programming
    Replies: 2
    Last Post: 07-11-2011, 06:51 AM
  4. Multiple events per location Distance tables
    By flebber in forum Database Design
    Replies: 1
    Last Post: 03-13-2010, 08:48 PM
  5. Top 3 times for each distance
    By CraigBFG in forum Queries
    Replies: 0
    Last Post: 06-24-2009, 09:19 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