Hey all.
Just curious about this as I've never come across the need.
Is there any way to calculate distance between different zip codes, mathematically or vb functions?
Example.
A listbox containing 6 different zipcodes within a state.
Is there any decent way to sort the listbox of zip codes based on distance to a zipcode in a textbox the user inputs.
Nearest zip code at top of listbox and furthest at bottom.
any code ideas? other than using a 3rd party website functions.




Reply With Quote