Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    location search.

    This may not be a possibility in access at all. But when websites have a "store locator" I would like to implement something similar for hospitals.



    So when we are given a list of postcodes it will automatically find the nearest hospital in the database. (all hospitals in the area we cover have been entered). Ill investigate the javascript and PHP for similar things, but does anyone know if something like this can be done in access?

    Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You could call Google map search using the zip code.
    do it in google then apply the URL to a button in vba.

  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,726

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    But google wont show me the nearest hospital. It will just show me the location of what I enter right?
    there are a few wordpress apps I have seen. That will allow me to do this.

    Maybe I'm asking too much (or know too little) in access.

    The NHS here (national health service) do have this facility but... It only searches 15 miles from any location you enter.. and also it shows things I do not wish to see. So automating that procedure wouldn't work.

    I might just do a local wordpress app. OR....

    Just thinking here:

    We have quite a lot of data now. perhaps there is a query that could see the first 3 letters of a postcode. If that exists on another record then use the same hospital ID...

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Orange, Just briefly looked at that and wondering how I could apply it. If it shows distance, I could have it query the postcode/zipcode I enter then return the one with lowest value?

  6. #6
    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,726
    That's the concept.
    If you have the location address, postalcodeZip or lat/lon of each hospital, and the current location addr/zip or lat/lon, you can quickly calculate the "route" with minimal distance.

  7. #7
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I like it, The Map function doesn't work as it should, but I have that working already.

    Its great how it returns the values as it does though, Thanks.

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

Similar Threads

  1. Replies: 10
    Last Post: 02-06-2015, 03:40 PM
  2. How to get location of object
    By lawdy in forum Programming
    Replies: 11
    Last Post: 05-29-2014, 01:43 PM
  3. Picture location using vba only
    By trevor40 in forum Forms
    Replies: 1
    Last Post: 03-22-2014, 08:29 AM
  4. Hyperlink Location
    By Mahendra1000 in forum Access
    Replies: 1
    Last Post: 09-26-2013, 09:00 AM
  5. Replies: 23
    Last Post: 05-18-2012, 08:31 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