How to force a pushpin for geoByNone

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

Mattys Consulting
09-07-2007, 06:20 PM
You might just add a pushpin to "My PushPins" at the Zip location
for each PO Box. Not much fuss to that. You'll probably want them
seperate anyway ...

Mike Mattys

PureWeen
09-07-2007, 06:24 PM
Yea...that was my plan if I couldn't find another way

 
Web mp2kmag.com
mapforums.com