Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

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

  1. #1
    Vincent BENNER's Avatar
    Vincent BENNER is offline Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    44

    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

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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

  3. #3
    Vincent BENNER's Avatar
    Vincent BENNER is offline Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    44

    Re:

    OK, it works !

    Thank you very much.

    Vincent BENNER

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. good packteg
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-04-2005, 02:54 AM
  2. Error when find a pushpin
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-28-2004, 11:17 AM
  3. Find Nearby Pushpin in dataset
    By Dazzer in forum Products: Pushpin Tool, Single State Mapper
    Replies: 1
    Last Post: 10-16-2003, 03:05 PM
  4. Find Record in Dataset from selected Pushpin
    By neomoon in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-11-2003, 07:49 AM
  5. Does anyone know of any good resources for using M....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-12-2002, 03:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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