Community of VE/MapPoint Users and Developers
This is a discussion on Spend a Minute to Help a Newbie (Please) within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I downloaded the following code from this site, which allows me to map each address individually in an Access form. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Spend a Minute to Help a Newbie (Please) Can someone tell me how to tweak this code so that I can map all addresses at the same time? Thanks so much! Mike ----------------------- Option Compare Database Dim objMap As MapPoint.Map Dim objPin As MapPoint.Pushpin Sub Form_Load() Set objMap = MPC.NewMap(geoMapNorthAmerica) MPC.Toolbars.Item("Navigation").Visible = True 'This is done in the Form_Load so that the DataSets(1).Delete does not bomb in Form_Current the first time it is run Set objPin = objMap.AddPushpin(objMap.FindAddressResults(Me!Add ress, Me!City, , Me!State, Me!Zip)(1)) For Each objPlaceCat In objMap.PlaceCategories objPlaceCat.Visible = False Next End Sub Private Sub Form_Current() objMap.DataSets(1).Delete Set objPin = objMap.AddPushpin(objMap.FindAddressResults(Me!Add ress, Me!City, , Me!State, Me!Zip)(1)) objPin.Symbol = 57 objMap.DataSets.ZoomTo End Sub Private Sub Form_Unload(Cancel As Integer) objMap.Saved = True End Sub |
| |||
|
Hi, Just call the AddPushpin method in a loop for each address you have. For example if yoir addresses are in a table then loop trough the table until you reach EOF.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
| Addpushpin by loop through a recordset
This article has all the code you will need and more. http://www.mp2kmag.com/a48--sqlserve....mappoint.html Eric sells a starter book called MapPoint For Dummies at some crazy low price ($11 or something like that) - you'd best start there. Ciao,
__________________ Calv1ns |
| ||||
|
This is where you'll find the offer for the $11 book -- http://www.mp2kmag.com/whats_new.html -- 9/11/05 Eric
__________________ |
![]() |
| Tags |
| minute, newbie, spend |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mappoint Newbie | Anonymous | MapPoint 2006/2009 Discussion | 1 | 03-04-2005 12:15 PM |
| GPS help - Newbie | Suzgreive | MapPoint 2006/2009 Discussion | 0 | 11-30-2004 12:52 PM |
| NEWBIE needs help!! | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-08-2004 02:27 PM |
| Newbie - please help | Anonymous | MapPoint 2006/2009 Discussion | 0 | 09-05-2002 05:48 AM |
| First of many newbie questions ;) | freditoba | MapPoint 2006/2009 Discussion | 1 | 08-05-2002 01:08 PM |