Results 1 to 3 of 3
  1. #1
    mbenton's Avatar
    mbenton is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Calculating driving distance at 45 mph between two stops.

    Hi, I'm creating a form that has a command button that I want to calculate driving distance (at 45mph) between stops. The form will be based on a table called Supplierstbl which holds supplier addresses including zip codes. I think I'll need to have Access get the distance from Google. Can anyone offer suggestions on how to do this or point me to some good examples that I can observe the coding? The user should only need to select the two zipcodes from the supplier table and push the command (calculate dist.) button. Thanks.

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    Look at this link and see if it does what you need

    http://www.access-programmers.co.uk/...d.php?t=225339

    I believe that this was developed by our moderator Orange. If you like this, be sure to thank him with some rep points.

  3. #3
    mbenton's Avatar
    mbenton is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    73
    This works great!! Very simple to use and quick. I will need to figure out how/where to base the time going 45 mph as I'm sure this is probably based on a much faster speed. Do you have any suggestions on where/how I can change the speed?

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. Calculating distance in access?
    By CarolR in forum Access
    Replies: 2
    Last Post: 05-04-2014, 10:29 AM
  3. Calculate distance using fields in form
    By wnicole in forum Access
    Replies: 1
    Last Post: 09-28-2013, 09:05 AM
  4. Google Distance Matrix API
    By rbiggs in forum Programming
    Replies: 2
    Last Post: 07-11-2011, 06:51 AM
  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