"Find a Store Near you" Application

G

Galsaba

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/content/dealersearch.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.

Aaron
(e-mail address removed)
 
M

Mike Painter

Galsaba said:
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/content/dealersearch.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.
 
M

Mike Painter

Galsaba said:
Do you know where I can find the right scrip?t

Search for an algorithm that gives you the distance, they are easy to find.
You will have to write the code yourself.
Access uses an event driven language and is not a scripting language, most
of which are procedural in nature and give up depth for initial ease of use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top