MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 2006/2009 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 ...


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 08-01-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.....
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 08-01-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 08-06-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.
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 08-07-2002
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,480
Blog Entries: 1
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.
__________________
~ 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
access, app, linkdata, vb6


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


All times are GMT -5. The time now is 08:21 AM.


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