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

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  MAPPOINT Q & A  

Top | Post New Question | Read All | MP2K Asks Microsoft

643 Ryan - April 15, 2002

I am new to mappoint, and still learning in VBA. I am writing an application in Access Projects, linked to a SQL Server. I need to be able to have the user select an address, press a button and have that address appear on the map. I have got the map to open, but do not know how to pass the address to the map. Any help would be greatly appreciated, or at least point me to a book or reference that I can use. Thanks in advance

Answer:

First, use the "Microsoft MapPoint Visual Basic Reference" under the "Programming Information" topic in MapPoint help for information about the MapPoint object model.

Use the FindResults method with the address to do the equivalent of the Find box in MapPoint.

From Help:

    'Output first result of find search
    Set objFindResults = objApp.ActiveMap.FindResults("Seattle, WA")
    MsgBox "The first item in the find list is: " _
        + objFindResults.Item(1).Name 

- Walt Cygan

Post New Answer / Follow-up


Google
 
MP2Kmag Internet


 Recent Discussion
 Resources


Want Your Site To Appear Here?

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