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 4 of 4

I have a VB6 app using LINKDATA to get to a Access....

This is a discussion on I have a VB6 app using LINKDATA to get to a Access.... within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have a VB6 app using LINKDATA to get to a Access database. I am able to read the lat/long ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I have a VB6 app using LINKDATA to get to a Access database. I am able to read the lat/long in and display the one type of pushpin(symbol) for each individual point. My question..... Is it possible to have a unique symbol ID (pushpin) for each point on the map (i.e. - one location use a red truck and the other blue )? Thank you again.....

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    You could set the "Symbol" as you create the pushpins or use this code to change them if they are already on the map.

    Dim objDataSet As MapPointCtl.DataSet

    Dim objRecordset As MapPointCtl.Recordset

    Dim cnt As Integer

    cnt = 0

    Set objDataSet = MappointControl1.ActiveMap.DataSets(1) '("My Pushpins")



    Set objRecordset = objDataSet.QueryAllRecords



    objRecordset.MoveFirst

    Do Until objRecordset.EOF

    cnt = cnt + 1

    If cnt = 255 Then cnt = 0

    objRecordset.Pushpin.Symbol = cnt


    'or use a select statment

    Select Case objRecordset.Pushpin.Name

    Case "Test1"

    objRecordset.Pushpin.Symbol = 57

    Case "Test2"

    objRecordset.Pushpin.Symbol = 41

    End Select



    objRecordset.MoveNext



    Loop


    John

    john@support-pc.com

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    using latitude and longitude

    Would you mind sharing your code for locating a list of long/lat coordinates on MapPoint? I am working on an application for a snack delivery business. I am David Kachuck, dk0146@netscape.net.

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Lat/Lon

    The code is published in our articles section, see for instance http://www.mp2kmag.com/articles.asp?ArticleID=13, this is probably the most popular solution.
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VB6/ACCESS DB/.LinkData/.UpdateLink
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-15-2004, 01:01 PM
  2. Linking LinkData
    By DrewD in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-10-2004, 10:22 AM
  3. LinkData and VC++
    By sowtschi in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-07-2003, 09:32 AM
  4. LinkData with UDL file in VB 6 App
    By Wim in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-03-2003, 06:04 AM
  5. Is it possible to use the Linkdata() method to con....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-26-2002, 08:06 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