View Single Post

  #3 (permalink)  
Old 09-15-2005
Yazzy Yazzy is offline
Junior Member
Yellow Belt
 
Join Date: Dec 2004
Posts: 25
Refresh After A Pushpin Has Been Deleted From the Dataset

Hi

I can delete the pushpin but I cannot refresh the map the new map to show the left Pushpins only

ID = "John Smith"
Set objPin = objMap.FindPushpin(ID)

objPin.Select
objPin.Delete
?? WHAT CODE TO REDRAW NEW DATASET (after a pushpin delete) map ???


What do I add after the last line 'objPin.Delete' to Redraw the map

Currently the deleted pushpin still appear on the map but not in the Dataset i.e "John Smith" does not appear when the Dataset test is done (see below for the dataset test code)


Set objDataSet = objMap.DataSets("New Set")

Set objRecordset = objDataSet.QueryAllRecords

Do Until objRecordset.EOF

MsgBox objRecordset.Pushpin.Name
objRecordset.MoveNext
Loop



Thanks
Reply With Quote