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

599 Jason - February 11, 2002

I am new to Mappoint, so this question probably has been answered in the past. I have a set of addresses with the street and city information, but no zip code information. Is there a way I can import this into Mappoint, then export it back out with the correct zip code info? Any help would be appreciated.

Answer:

Sure, with VB code you can use the "FindResults" method to get the PostalCode. You can find code to bring data into MapPoint here. The following code shows how to use the "FindResults" method to get the "PostalCode" property.

Dim objLocFR As MapPointCtl.Location
Dim objMap As MapPointCtl.Map
Dim objFind As MapPointCtl.FindResults
    
    Set objMap = ctlMapPoint.ActiveMap
    Set objFind = objMap.FindResults("SR-520 & 148th Ave NE, Redmond, WA")
    For Each objLocFR In objFind
        Debug.Print objLocFR.StreetAddress.PostalCode
    Next

You could then update a database with the zip code.

I couldn't find a way to do it using the Import Data Wizard, or any other way that would not involve code.

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