PureWeen
09-07-2007, 05:37 PM
I have linked data records for my map
So after I UpdateLinked records in code
ds.UpdateLink();
I
MapPoint.Recordset data = ds.QueryAllRecords();
Than loop through the data looking for non matched records
Now Ambigiuous data is fine because I can just do
data.CallMatchMethod("MyMatchMethod", matchME);
And pick an ambiguous match
BUT I have no idea how to do this if the matchmethod is geoByNone
The problem is some of the addresses have the Address specified as a PO BOX so Mappoint doesn't like that at all and just says improper.
SO what I want to do is take that data unit (pushpin) and just place it as if the search was done by zipcode ignoring the address
How would I do this?
I tried setting location
data.PushPin.Location = loc
but that didn't work
And I can't to an AddPushPin followd by a moveto because it's a linked data set
Is it possible?
Or do I just have to go through the excel file it's linked to and by hand remove all the PO Box addresses. Because if it comes back as geoByNone it's impossible to just manually put the associated pushpin somewhere?
Thank you for your help
Shane
So after I UpdateLinked records in code
ds.UpdateLink();
I
MapPoint.Recordset data = ds.QueryAllRecords();
Than loop through the data looking for non matched records
Now Ambigiuous data is fine because I can just do
data.CallMatchMethod("MyMatchMethod", matchME);
And pick an ambiguous match
BUT I have no idea how to do this if the matchmethod is geoByNone
The problem is some of the addresses have the Address specified as a PO BOX so Mappoint doesn't like that at all and just says improper.
SO what I want to do is take that data unit (pushpin) and just place it as if the search was done by zipcode ignoring the address
How would I do this?
I tried setting location
data.PushPin.Location = loc
but that didn't work
And I can't to an AddPushPin followd by a moveto because it's a linked data set
Is it possible?
Or do I just have to go through the excel file it's linked to and by hand remove all the PO Box addresses. Because if it comes back as geoByNone it's impossible to just manually put the associated pushpin somewhere?
Thank you for your help
Shane