View Single Post

  #2 (permalink)  
Old 03-19-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
loading a map to a specific addreaa

I do this by creating a form with mappoint as an activeX control named "mymap"

the form has a field for address, city, state, and zip

Next add this to the onload property of the form

Me.mymap.NewMap geoMapNorthAmerica
mymap.Toolbars.Item("Navigation").Visible = True
'Show School
Me.mymap.ActiveMap.PlaceCategories("Schools").Visi ble = True

Dim oMap As MapPoint.map
Set oMap = GetObject(, "mappoint.application").ActiveMap
Dim lochome As MapPoint.Location
Set lochome = oMap.FindAddressResults(, Me!city, , Me!state, Me!Zip, "USA")(1)

lochome.Goto


Hope this will be helpful
Randye
Reply With Quote