Access 2013, Windows 10, LocationAPI


  • I am trying to get the lat & lon using the LocationApi 1.0 Type Library.  Works fine on Win 7 & 8.1.  No longer works on Windows 10. I can't seem to find anything new on using this under Windows 10, all I see is Windows 8.1 & 7 info.

    My function does this:

                Dim Display As LatLongReportFactory
                Dim ddLat   As Double
                Dim ddLng   As Double
                Dim dmLat   As Double
                Dim dmLng   As Double
                ' Create connection to MS Location Services
                Set Display = New LatLongReportFactory
                ' Wait 1 sec to initialize
                Sleep (1000)
                ' Get the Lat and Lon in decimal degrees
                ddLat = Display.LatLongReport.Latitude
                ddLng = Abs(Display.LatLongReport.Longitude)
                ' Convert the Lat and Lon to Decimal Minutes
                dmLat = Format((ddLat - Fix(ddLat)) * 60, "00.000")
                dmLng = Format((ddLng - Fix(ddLng)) * 60, "00.000")
                'Create the Lat and Lon string
                getGPS = Fix(ddLat) & Chr(176) & dmLat & "N," & Fix(ddLng) & Chr(176) & dmLng & "W,0,0"
                ' Close connection to Location Services
                Set Display = Nothing

    Wednesday, March 9, 2016 6:54 PM

All replies

  • Hi RacerDad,

    This forum is used to discuss about Access developing like Access object model, your issue is more related with LocationAPI, I will move this thread to the more related forum.


    Thanks for your understanding.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, March 10, 2016 3:17 AM
  • Thanks for posting here.

    The Win32 Location API and is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the Windows.Devices.Geolocation API. To access location from a website, use the W3C Geolocation API.

    Hope that could help.

    • Edited by Baron Bi Thursday, March 10, 2016 3:35 AM
    Thursday, March 10, 2016 3:35 AM
  • In Access 2013, Microsoft Visual Basic for Applications editor, References I found this:

    Windows Geolocation Service, v1.0
       Location: C:\Windows\System32\LocationFramework.dll
       Language: Standard

    When I click to add it I get this error:

    Error in loading DLL

    Thursday, March 24, 2016 3:43 PM