Results 1 to 5 of 5
  1. #1
    rbiggs is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    23

    Calculate Miles

    Is there an add in or third party application that integrates well with access that will calc the distance between 2 addresses? I have briefly looked at longitude and latitude but that is really just a straight line and I was looking from something more accurate.



    Thanks

  2. #2
    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,722
    Please describe your situation more completely. What exactly do you mean miles between 2 addresses? With addresses you can have ZIP codes which represent an area locator, or a physical set of Lat/Log coordinates which represent a point locator.

    What are you trying to accomplish?

    You might want to read up on Great Circle Distances in VBA here
    http://www.cpearson.com/excel/LatLong.aspx

  3. #3
    rbiggs is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    23
    I have a database for a trucking company the dispatchers enter a address for a pickup location and then several drop off locations. The drivers are paid for the miles related to the particular part of the route. So a route could have different drivers. I wanted to calc the distance of between the pickup location and the first drop off then the first drop off and 2nd drop off and so on. I will read that link you had posted. Thank you for your help.

  4. #4
    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,722
    Another thought that may apply -- and I must advise that I have NOT tried this-- is the possible use of Google maps. You can find the distance between locations from Google maps, but I'm not sure how exactly to do it using code.
    Perhaps someone on the forum has experience in this area and could advise,

    Good luck.

  5. #5
    rbiggs is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    23
    I was wondering if anyone has used the built in web browsing in access to do this. I can figure out how to pass addresses to a webpage I don't know how to get the webpage to return a value to the database though.

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

Similar Threads

  1. Calculate Interest
    By jgelpi16 in forum Queries
    Replies: 3
    Last Post: 08-19-2016, 08:01 PM
  2. calculate value from two tables
    By victor in forum Programming
    Replies: 3
    Last Post: 08-20-2010, 12:13 PM
  3. Replies: 5
    Last Post: 05-05-2010, 04:31 PM
  4. Calculate avg in a report
    By bob006 in forum Reports
    Replies: 1
    Last Post: 11-18-2009, 06:31 PM
  5. calculate holidays
    By barkarlo in forum Queries
    Replies: 0
    Last Post: 12-20-2006, 06:08 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