D
David McKnight
I have the following query:
Distance Traveled:
Acos(((Cos([Location_2.Lat-radians])*Cos([Location.Lat-radians])+Sin([Location_2.Lat-radians])*Sin([Location.Lat-radians]))*Cos(([Location_2.Long-radians])-([Location.Long-radians]))))*3958.756
Since I know Access doesn't have a built in Acos function I have created a
module:
Public Function Acos(X)
Atn (-X / Sqr(-X * X + 1)) + 2 * Atn(1)
End Function
But I still get an error "Undefined function Acos in express" when I try
running the query. What gives?
Distance Traveled:
Acos(((Cos([Location_2.Lat-radians])*Cos([Location.Lat-radians])+Sin([Location_2.Lat-radians])*Sin([Location.Lat-radians]))*Cos(([Location_2.Long-radians])-([Location.Long-radians]))))*3958.756
Since I know Access doesn't have a built in Acos function I have created a
module:
Public Function Acos(X)
Atn (-X / Sqr(-X * X + 1)) + 2 * Atn(1)
End Function
But I still get an error "Undefined function Acos in express" when I try
running the query. What gives?