Top |
Post New Question |
Read All |
MP2K Asks Microsoft
643
Ryan
-
April 15, 2002
I am new to mappoint, and still learning in VBA. I am writing an application in Access Projects, linked to a SQL Server. I need to be able to have the user select an address, press a button and have that address appear on the map. I have got the map to open, but do not know how to pass the address to the map. Any help would be greatly appreciated, or at least point me to a book or reference that I can use. Thanks in advance
Answer:
First, use the "Microsoft MapPoint Visual Basic Reference" under the
"Programming Information" topic in MapPoint help for information about
the MapPoint object model.
Use the FindResults method with the address to do the equivalent of the
Find box in MapPoint.
From Help:
'Output first result of find search
Set objFindResults = objApp.ActiveMap.FindResults("Seattle, WA")
MsgBox "The first item in the find list is: " _
+ objFindResults.Item(1).Name
- Walt Cygan
Post New Answer / Follow-up