Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 6 of 6

Tracking P.F. Chang’s in the Midwest

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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Tracking P.F. Chang’s in the Midwest

    A popular Asian-themed restaurant has opened dozens of locations throughout the U.S. This article demonstrates a simple MapPoint/Access application showing P.F. Chang’s locations in Illinois and Indiana.

    Read the full article: http://www.mp2kmag.com/articles.asp?ArticleID=71

  2. #2
    Taab is offline Junior Member White Belt
    Join Date
    Jun 2004
    Posts
    4

    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

  3. #3
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Not that I'm aware of.. what are the errors? Do they give some hint of what changes might be required?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  4. #4
    Taab is offline Junior Member White Belt
    Join Date
    Jun 2004
    Posts
    4

    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

  5. #5
    Taab is offline Junior Member White Belt
    Join Date
    Jun 2004
    Posts
    4

    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

  6. #6
    Taab is offline Junior Member White Belt
    Join Date
    Jun 2004
    Posts
    4

    9.0 vs 11.0

    The only thing I can come up with is that you use version 9.0 of the MapPoint Active X component and I have 11.0.

    Could this be the problem?

    Thanks,

    Tracy Lowelll

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Covert GPS Tracking
    By gilbertwa in forum Press Releases
    Replies: 8
    Last Post: 08-02-2011, 04:47 AM
  2. multiple tracking
    By bchara in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-30-2005, 05:15 PM
  3. Map for tracking on the sea
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-27-2004, 01:27 PM
  4. Tracking Via GPS
    By mkelly21 in forum Bing Maps and MapPoint Web Service
    Replies: 2
    Last Post: 10-12-2004, 09:52 PM
  5. how tracking road
    By bchara in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-29-2003, 05:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96