Community of VE/MapPoint Users and Developers
This is a discussion on Tracking P.F. Chang’s in the Midwest within the MP2K Magazine Articles forums, part of the Map Forums category; A popular Asian-themed restaurant has opened dozens of locations throughout the U.S. This article demonstrates a simple MapPoint/Access application showing ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Tracking P.F. Chang’s in the Midwest Read the full article: http://www.mp2kmag.com/articles.asp?ArticleID=71 |
| |||
| Any Changes required for MapPoint2004?
I am able to run this fine in access but when I try to use the same code with MapPoint 2004 it keeps giving me errors. Are there any changes required for Access 2003 or MapPoint 2004? Thanks, Tracy Lowell |
| |||
| Errors with Access
I am trying to display MapPoint maps in Access just like the one in this article. I am cutting and pasting the code into access 2003 and using MapPoint 2004 Trial. The errors seem to center aroung the "objMap" object. Set objMap = MPC.NewMap(geoMapNorthAmerica) Run-time error 91 Oject variable or With block variable not set Run-time error 438 Object doesn't support this property or method This is the code I am using: Dim objMap As MapPoint.Map Dim objPin As MapPoint.Pushpin Sub Form_Load() Set objMap = MPC.NewMap(geoMapNorthAmerica) MPC.Toolbars.Item("Navigation").Visible = True 'This is done in the Form_Load so that the DataSets(1).Delete does not bomb in Form_Current the first time it is run Set objPin = objMap.AddPushpin(objMap.FindAddressResults(Me!Pro pAddress(P), Me!PropCity(P), , Me!PropState(P), Me!PropZipPlus4(P))(1)) For Each objPlaceCat In objMap.PlaceCategories objPlaceCat.Visible = False Next End Sub Private Sub Form_Current() objMap.DataSets(1).Delete Set objPin = objMap.AddPushpin(objMap.FindAddressResults(Me!Pro pAddress(P), Me!PropCity(P), , Me!PropState(P), Me!PropZipPlus4(P))(1)) objPin.Symbol = 57 objMap.DataSets.ZoomTo End Sub Private Sub Form_Unload(Cancel As Integer) objMap.Saved = True End Sub I renamed my control to "MPC" and changed the address references. Any ideas? Thanks, Tracy Lowell |
| |||
| Does this explain the problem?
I came accross this note in the MapPoint Help File. Note With MapPoint 2004, the MapPoint Control is supported only in Microsoft Visual Basic 6.0 or later. This does not include Visual Basic for Applications (for example, the Visual Basic for Applications included with Microsoft Office). It also does not include Microsoft Internet Explorer. You can use MapPoint as an ActiveDocument in Internet Explorer to achieve the same functionality. This is listed under "Getting started with the MapPoint control." Thanks for any help, Tracy Lowell |
![]() |
| Tags |
| chang’s, midwest, tracking |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Covert GPS Tracking | gilbertwa | Press Releases | 1 | 08-21-2007 10:53 PM |
| multiple tracking | bchara | MapPoint 2006/2009 Discussion | 1 | 04-30-2005 04:15 PM |
| Map for tracking on the sea | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-27-2004 12:27 PM |
| Tracking Via GPS | mkelly21 | MapPoint Web Service and Virtual Earth | 2 | 10-12-2004 08:52 PM |
| how tracking road | bchara | MapPoint 2006/2009 Discussion | 0 | 03-29-2003 04:43 AM |
Cheap Flights to Benidorm
Book cheap flights to Benidorm with Holiday Hypermarket. Whether Summer or Winter Benidorm is a great destination.
City Breaks
Book a city break with Travel Counsellors. A personal travel advisor will help you make the most of your city break.
Holidays Italy
Book your holidays in Italy. Italy has a great climate and the beaches to go with it. Book a great deal for great value online at dealchecker.co.uk.
Holidays in Cuba
Holidays in Cuba are an eclectic mix of golden beaches, rich, colourful scenery and a proud cultural heritage. Book a break in Cuba now!
Holidays
For bargain holidays to destinations including Mexico, South Africa, India and more, visit ULookUBook online today. Check out our free travel guides to help you make an informed decision for your holidays.
Compare flight prices
Travel.co.uk makes it easy for you to compare flight prices from hundreds of UK based travel companies.
Holidays in Lanzarote
A quality luxury hotel awaits your patronage in the Canary Islands. Get information on holidays in Lanzarote at On The Beach.