Here's a little Access database for calculating the straight line distance between zip codes. It uses MapPoint to get the lat/lon (geocode) of the zip code. It just puts in 0 if it can't find the zip code. Also, there is a routine to try to standardize the zip code and it writes the formatted zip code back into the original table.
Your database must be placed in a table called ZipCodeList with columns ZipA, ZipB, and StraightLineDistance.
There is a macro "Run Program" which kicks off the code.
See screenshots of the sample data before and after the program is run.
Let me know if you would like help with this or have any questions!
Eric




LinkBack URL
About LinkBacks






Reply With Quote

