I need to calculate the distance between two address. I have the LAT and LON on all of the addresses... there are tens of thousands of address. I need to do compares so I need to do this in VBA in ACCESS.
I have a formula that works in Excel, but it does not work in Access...
This is the Excel Formula...
=ACOS(COS(RADIANS(90-Lat1)) *COS(RADIANS(90-Lat2)) +SIN(RADIANS(90-Lat1)) *SIN(RADIANS(90-Lat2)) *COS(RADIANS(Lon1-Lon2))) *6371
Any Ideas ?
Thank you...
Victor
I have a formula that works in Excel, but it does not work in Access...
This is the Excel Formula...
=ACOS(COS(RADIANS(90-Lat1)) *COS(RADIANS(90-Lat2)) +SIN(RADIANS(90-Lat1)) *SIN(RADIANS(90-Lat2)) *COS(RADIANS(Lon1-Lon2))) *6371
Any Ideas ?
Thank you...
Victor