View Single Post

  #1 (permalink)  
Old 01-17-2006
bgower bgower is offline
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 3
MapPoint and vb 6

I have a vb 6 app that references MapPoint and uses the following code.

Set oFindResults = oMap.FindAddressResults(NonEmptyField(rs!Addr1, ""), NonEmptyField(rs!City, ""), NonEmptyField(Left(rs!State, 2), ""))
If oFindResults.ResultsQuality = geoFirstResultGood Then
Set oPushPin = oMap.AddPushpin(oFindResults.Item(1), rs!CardNo)
oPushPin.BalloonState = geoDisplayName
lCountMappedMembers = lCountMappedMembers + 1

It works fine as long as the street address and the city and the state are correct. If it can't match exactly the street+city+state then a get an object required error on the FindAddressResult line. How can I work around this?
Reply With Quote