I am using Access 2007 and am building a database of postal codes & lat/long coordinates. I want to end up with something where you can input a postal code, then return an address from a different table with the nearest latitude & longitude. I have seen many examples of "nearest value" code but none that incorporate finding the minimum absolute difference between 2 values.
In other words, I have 2 tables: PostalReference and SiteList. PostalReference contains every postal code & its associated lat-long:
A0A 47.0073 -52.9589
B0H 45.6051 -61.6975
et cetera. I want to be able to input a postal code, then find the associated lat/long and the entry with the nearest lat/long from the SiteList table.