MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Matching unmatched items after import into VB6 app

This is a discussion on Matching unmatched items after import into VB6 app within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am importing a salesman's route (in a CSV file) into my VB6 app using the Mappoint ActiveX control. The ...


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 12-19-2002
Junior Member
White Belt
 
Join Date: Dec 2002
Posts: 2
Matching unmatched items after import into VB6 app

I am importing a salesman's route (in a CSV file) into my VB6 app using the Mappoint ActiveX control. The CSV file contains street, town, county and postcode, and I am using the ImportData method to create a dataset and associated pushpins on my map, first of all using the postcode. However, some postcodes in the data may be missing or incorrect, and the ImportData method does not find the correct location or add a pushpin to the map. Using a Mappoint recordset, I can find which items were unmatched, and then find them using the other criteria (street, town etc), with the FindAddressResults method. If the correct location can be found in this way, I would like to add the result to the dataset, but cannot find a way of doing this. Any help would be appreciated.
Thanks in advance.
Andy Baker
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 12-19-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hi,
I try to give you a way:

mymap.NewMap (geoMapEurope)
Set oMap = mymap.ActiveMap

'You add a group to the collection Datasets
oMap.DataSets.AddPushpinSet "g1" 'this is a group

'You find your adress
Set locTest = oMap.FindAddressResults("", txt, "", "", vcode, vcountry).Item(1)

'You place your pushpin in your map
Set opPin = oMap.AddPushpin(locTest, title)
'You had your pushpin to the group
opPin.MoveTo oMap.DataSets.Item("g1")
'The pushpin will have a symbol ...
opPin.BalloonState = geoDisplayName
opPin.Symbol = n

I think that the grpou "g1" coul be those you have import from your data file.

Bye,

Val
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 12-20-2002
Junior Member
White Belt
 
Join Date: Dec 2002
Posts: 2
Thanks for the tip. Setting the pushpin symbol and adding it manually to the map is much better than not displaying it at all. The problem that I now have is that the pushpin remains unmatched. I am displaying the details of each location using
xShowFields = Array(oDataset.Fields(2), oDataset.Fields(3), oDataset.Fields(4), oDataset.Fields(5))
oDataset.SetFieldsVisibleInBalloon (xShowFields)

to display the customer fields in the information balloon. However, the unmatched pushpin has no such fields, and I can only display the pushpin name, which is the unique customer code. This is not very meaningful, unless the user knows all the codes, and I would prefer to be able to display the customer name and address as I do for all the imported pushpins.
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 01-20-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I am trying to link Access and Mappoint so that I can check to see which records contain invalid postcodes.
Is this possible using VBA as I do not have access to VB6 or other SDKs?

I don't need any automation, I just want it to return a list of al records (account code & post code), so that I can then go to those accounts and correct/update the post codes
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
app, import, items, matching, unmatched, 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
Sum of Items within a Radius? Anonymous MapPoint 2006/2009 Discussion 1 05-09-2005 05:47 PM
Unmatched records fletch MapPoint 2006/2009 Discussion 0 03-09-2005 10:24 AM
Programmatically selecting Unmatched results? mschoonmaker MapPoint 2006/2009 Discussion 7 01-21-2005 08:13 AM
export unmatched records Anonymous MapPoint 2006/2009 Discussion 1 03-17-2003 02:51 PM
Non Mapped Items Anonymous Wish List 0 12-17-2002 03:33 AM


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