MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to find the good PushPin when n ame is the same ?

This is a discussion on How to find the good PushPin when n ame is the same ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I've got a map with linked datas. I've to goto a pushpin of a customer (not unique code) witch ...


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 09-20-2002
Vincent BENNER's Avatar
Member
Yellow Belt
 
Join Date: Sep 2002
Posts: 41
How to find the good PushPin when n ame is the same ?

Hello,

I've got a map with linked datas.

I've to goto a pushpin of a customer (not unique code) witch owns 2 computers (unique code).

Datas aren't the sames so, I created a source for computers A
and another source for computers B

When I click on a pushpin, I've got a dialog box to choose
between 2 locations.

When I display the name of the pushpins, I show the name of the
customer. Into the Ballon, I see the computer number.

So, how to arange the FindPushpin method to go to the good
pushpin ?

I don't know if I'm clear enough so if you need more explainations, ask to me !

Regards,

Vincent BENNER
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 09-20-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
The FindPushpin Method searches on the Pushpin Name. This sample code will let you search by name and note.

Set objmap = MappointControl1.ActiveMap

For Each objDataset In objmap.DataSets
Set objRecordset = objDataset.QueryAllRecords

Do Until objRecordset.EOF

If InStr(objRecordset.Pushpin.Name, "CompanyName") Then
If InStr(objRecordset.Pushpin.Note, "ComputerNumber") Then
MsgBox "Found It"
End If
End If

objRecordset.MoveNext
Loop
Next
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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 09-20-2002
Vincent BENNER's Avatar
Member
Yellow Belt
 
Join Date: Sep 2002
Posts: 41
Re:

OK, it works !

Thank you very much.

Vincent BENNER
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
ame, find, good, pushpin


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
good packteg Anonymous MapPoint 2006/2009 Discussion 0 05-04-2005 03:54 AM
Error when find a pushpin Anonymous MapPoint 2006/2009 Discussion 1 01-28-2004 12:17 PM
Find Nearby Pushpin in dataset Dazzer Products: Pushpin Tool, Single State Mapper 1 10-16-2003 04:05 PM
Find Record in Dataset from selected Pushpin neomoon MapPoint 2006/2009 Discussion 1 09-11-2003 08:49 AM
Does anyone know of any good resources for using M.... Anonymous MapPoint 2006/2009 Discussion 1 06-12-2002 04:48 AM


All times are GMT -5. The time now is 10:10 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