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

542 Cory Jobe - December 13, 2001

How do I get updatelink to work? I have an access database where I have inserted the MP control which opens a predefined map. I want to be able to update the map when the user clicks on the button that opens the map, but I can't quite figure out how to make the updatelink work. Thanks.

Answer:

Adapted from MapPoint VB Help:
Sub UpdateLinksOnMap()
Dim objApp As New MapPoint.Application
Dim objDataSet As MapPoint.DataSet
objApp.Visible = True
objApp.UserControl = True

'Replace "Linked Data" with your linked pushpin set name.
Set objDataSet = objApp.ActiveMap.DataSets("Linked Data")
objDataSet.UpdateLink
End Sub

This assumes that the map data was originally created through the Link Wizard. Hope this helps.

- 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.