G
Guest
What is the formula for calculating distance between latitude and longitude.
I use the following formula in Excel but doesn't work in Access.
=3963*acos(Sin("lat/57.2958")*Sin("ycoord/57.2958")+Cos("lat/57.2958")*Cos("ycoord/57.2958")*Cos(("xcoord/57.2958")-("lon/57.2958")))
Where "lat/lon" is the first set of coordinates and "ycoord" and "xcoord" is
the second set of coordinates. Coordinate format is +/- DD.DDDD.
Access did not recognize "Acos"
I use the following formula in Excel but doesn't work in Access.
=3963*acos(Sin("lat/57.2958")*Sin("ycoord/57.2958")+Cos("lat/57.2958")*Cos("ycoord/57.2958")*Cos(("xcoord/57.2958")-("lon/57.2958")))
Where "lat/lon" is the first set of coordinates and "ycoord" and "xcoord" is
the second set of coordinates. Coordinate format is +/- DD.DDDD.
Access did not recognize "Acos"