spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
Toolbar
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2006
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Sponsors
 Order

MapPoint 2006

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
ViaVirtualEarth
SVG Tutorials
MapPoint

Map Visitors

 Direct Media

IT support
Connect has been providing IT support since 1993. Benefit from our experience and commitment to fixed-priced IT support.

cartridge ink
Get cartridge ink from top brands such as Epson, HP and many more. Check out our great prices. Ring our rapid order freephone!

Cheap flights to Italy
Italy is overflowing with things to do, things to see and things to eat. Why not book cheap flights to Italy online right now?

Cheap Holidays in Greece
Book cheap holidays in Greece and relax on the beach. Book online with On The Beach to book a brilliant holiday. High value holidays for low costs!

bulgarian Property
Bulgarian property for sale. Visit us online to see details of our ski and beach property developments.

Flights to India
Don't miss out on the great value flights to India available online at dealchecker.co.uk. India is home to the descendants of one of the world's oldest civilisations, the Indus Valley civilisation.

Cyprus
Before visiting Cyprus, make sure you are well informed to make the most of your holiday. Online at ulookubook.com you check out our useful travel guides. Find out all about the Cyprus nightlife, shopping, eating and customs.

  ARTICLES  


Tracking P.F. Chang’s in the Midwest

A popular Asian-themed restaurant has opened dozens of locations throughout the U.S. This article demonstrates a simple MapPoint/Access application showing P.F. Chang’s locations in Illinois and Indiana.

This article demonstrates use of the MapPoint control on an Access form. We don’t do anything sophisticated, just walking through addresses in a table, geocoding them, and re-centering the map. We leave it to the reader to imagine and build off this to develop applications to suit your own needs.

First, take a look at the cuisine section of P.F. Chang's web site. This alone suffices as motivation for this article. Also see their new items.

Now, visit their locations section. (Note that for mapping, they are linking to external sites employing a combination of Yahoo! Maps and MapQuest. Imagine how it could look with MapPoint .NET integrated into the site at Dollar Rent A Car's store locator.) [ed. Note (08/02): it appears pfchangs.com is now using MapQuest exclusively]

For the purposes of this article, I grabbed the addresses and descriptions of the five sites in Illinois and Indiana and pasted them into an Access table.

Download the Access database (Access 2000 format) here. Use the record navigation buttons at the bottom left to walk through the records. The .mdb file consists of just two objects: the table and a form. Here's what the form looks like:

(Note that you can add and subtract your own records to the table making it a generic solution without need of programming knowledge or digging into the form's code and settings.)

Let's walk through the form code. The Form_Load section starts by instantiating the map and making the Navigation toolbar visible. It then adds a dummy pushpin as a work-around, not elegant, but it gets the job done and finishes by ensuring that all place categories are turned off simply for esthetic's sake.

The Form_Current subroutine is called each time the record changes. The first line deletes the old pushpin, the next line geocodes the address, and the following lines set the symbol and zoom to the location.

featured resources
- Restaurant architects & Restaurant Engineers - For Hire For Your Project Immediately


This prevents the control from prompting the user to save the map when the form closes.


Want to enhance or further this sample? Have a MapPoint/Access technique you'd like to show off? Submit solutions in .MDB format to website@mp2kmag.com for inclusion in our .MDB Circus competition before the July 31st, 2002 deadline to win a full copy of Microsoft MapPoint 2002.

Discuss this story in the forum.

Author: Eric Frost
Email: website(AT)mp2kmag.com
URL: http://www.mp2kmag.com
Eric is Editor and Publisher of MP2K Magazine and is a part-time student in University of Chicago's evening MBA program. Eric recently finished the MP2Kmag Guide What's New in MapPoint 2004.



Google
 
MP2Kmag Internet


 Recent Discussion
-Virtual Earth Case Study: Regional Government Alliance Builds Connections with Integrated Mapping
-Virtual Earth on CSI: New York
-Helping out after the China quakes
-Coastal Boundaries
-Mapping Earthquakes in China
-An invalid argument was encountered.
-Navman Wireless Oem Solutions Enhances Leading Line Of Gps Receiver Modules
-T-mobile UK
-Virtual Earth and OpenLayers
-Reminder: Microsoft Virtual Earth Partner Webinar and Offer for Free Training
-Virtual Earth Quarterly Technical Briefing
-Customize User Page
-Information about area
-Territory information
-Gps task pane in ActiveX
-Worldwide Telescope Now Available!
-c++ - setting the color of a line
-Initial Costa Rica MapServer map is up & running!
-Satellite Images of Myanmar Cyclone Damage
-Virtual Earth Loyalist: Aerial View
-Leaving messages on the Virtual Earth for Government blog site
-Virtual Earth Webcast: Adding Mapping Capabilities to your Applications with Virtual Earth
-Get new Lat & Lon from speed
-Integrating Virtual Earth Maps and Excel 2007
-Zillow.com
 Resources
Browse GIS books and periodicals
Best Car Contract Hire Lease Save
Find a MapPoint Partner or Consultant
Real Estate Thornbrook Homes for Sale


Want Your Site To Appear Here?

   © 1999-2008 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006 are either trademarks or registered trademarks of Microsoft.

• Replacement Cordless Phone Batteries from DSMiller
Improve your career with a computer degree LocalEDU.com
• Tim Cohn's Marketing Strategy Consultancy
• Buy Toner, Ink Cartridges & Drums at Marquee Office Solutions
• Looking for Dry Erase Boards? See Dry Erase Boards
• 5339 - We Know Bikes: Road Bikes / Triathlon Bikes / Mountain Bikes / BMX Bikes
• Buy Your Car Used Cars, Car Lease and Contract Hire