View Single Post
  #2  
Old July 4th, 2004, 01:13 AM
Mike Painter
external usenet poster
 
Posts: n/a
Default "Find a Store Near you" Application


"Galsaba" wrote in message
...
I need an Access application that can search dealers from my dealer list,

in a
30 miles distance from the user.

You may see many applications like this on the web if you search under

"find a
dealer near you". Here is one I found:
http://www.shakespeare-antennas.com/...alersearch.asp

But I do not want to have it on the web, I want to create it on access.
I think will need at least two tables:
One is a table of each of our dealers, including their zip codes.
The other one is the entire zip database whick include all zip codes in

the USA
and Canada, including the lat and long for each.

Then, when the user enters the zip code of the person who wants to find a
dealer, the application will find its lat and long from the second table.

It
will then "open" an area of 30 miles radius from this lat and long, and

will
find all the dealers' ZIPs in that area. Actulally,
the lat and long of each.

Then it will calculate the air distance from the user ZIP codes to each of

the
Dealers ZIP codes.


Answers will be appreciated.

Do a search on distance latitude longitude this or something similar will
yield the equation you need. Check several of them for simplicity. The
simpler ones will not be as precise but will be accurate enough for your
need and the fact that ZIPCODES are based on the location of the post
offices. A person living north of Morgan Hill CA might be a mile from a
store in San Jose CA but the lookup would show about 20 miles.