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 5 of 5

detecting mappoint in vba

This is a discussion on detecting mappoint in vba within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have an Access database with one form that does all of my mapping and routing in MapPoint. (Access 2K, ...

  1. #1
    OregonIzer is offline Junior Member White Belt
    Join Date
    Jul 2005
    Posts
    3

    detecting mappoint in vba

    I have an Access database with one form that does all of my mapping and routing in MapPoint. (Access 2K, MP 2K4)

    I share the database - and some people have MapPoint on their machines and others don't.

    Can someone give me some simple code when someone tries to start that form that will detect whether MP is installed so that I can let them know they need it and keep the form from loading?

    Thanks

    Dave

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    hi,

    try any mappoint object in an exception block. if exception occurs you handle it in your program and mappoint is not installed.

  3. #3
    OregonIzer is offline Junior Member White Belt
    Join Date
    Jul 2005
    Posts
    3
    Thanks Wilfried:

    After hearing from some folks on an ACCESS group and realizing that to make it work correctly I would need to use late-binding for all of my MapPoint functions (seemed to make sense to me), which would slow down my already slow database (I am not a programmer at all). -- and given that there aren't enough copies of my database that it's out of my control; it seems like the best solution is simply to have a version of the frontend with all mapping functions (and the references) stripped out.

    Make sense?

    Dave

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I'm not certain that I understeand what you mean. Can you please explain again ? (English is not my native language)

  5. #5
    OregonIzer is offline Junior Member White Belt
    Join Date
    Jul 2005
    Posts
    3
    Instead of "telling" the user that they don't have MapPoint, I think it makes more sense to give people without MapPoint a version of the database that doesn't use it.

    That way I don't have to worry about bad references.

    (Your English is clearly much better than my Programming)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Detecting the currently selected pushpin
    By daxydoggie in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-19-2003, 04:57 AM
  2. Detecting when a line is clicked on in MP2K
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-21-2003, 11:24 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