MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Spend a Minute to Help a Newbie (Please)

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


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-18-2005
Junior Member
White Belt
 
Join Date: Nov 2005
Posts: 3
Spend a Minute to Help a Newbie (Please)

I downloaded the following code from this site, which allows me to map each address individually in an Access form. I've tried to figure out how to modify it so that all addresses appear on the map at the same time but have been unsuccessful.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-19-2005
Junior Member
White Belt
 
Join Date: Nov 2005
Posts: 3
Help me...please

Can anyone help me? Please?

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 11-20-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 11-20-2005
Junior Member
White Belt
 
Join Date: Nov 2005
Posts: 3
Wilfried,

Thank you very much for your reply and your suggestion. I'm sorry for being such a noob, but how do I do what you suggest?

Thanks again.

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 11-20-2005
calv1ns's Avatar
Member
Green Belt
 
Join Date: Mar 2005
Posts: 91
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 11-21-2005
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,487
Blog Entries: 1
This is where you'll find the offer for the $11 book --
http://www.mp2kmag.com/whats_new.html -- 9/11/05

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
minute, newbie, spend


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 07:14 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55