Open MS Mappoint file from Access

G

Guest

Hi
I am trying to open a MS Mappoint file located on the H drive through a
button in a form that I have made in Access. I used the Command Button
Wizard/Application/"run application" and then I put in the complete path to
the file (H:\Market mapping\H:\Market mapping\Map - Municipal with
facilities.ptm) but when I use the button the error "invalid procedure call
or argument" appears. What is the problem?

//Erik Svensson
 
J

John Nurick

Hi Erik,

This

H:\Market mapping\H:\Market mapping\Map - Municipal with
facilities.ptm

isn't a valid path. But the main problem is that for "run application"
you must supply a full Windows command line with the path to the
MapPoint .exe file as well as to the .ptm file. E.g.

"""C:\Program Files\Microsoft MapPoint Europe\MapPoint.exe""
""H:\Market mapping\Map - Municipal with facilities.ptm"""

But if you just want to open a document it's usually simpler to use
something like this:

Application.FollowHyperlink _
"H:\Market mapping\Map - Municipal with facilities.ptm"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top