MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers


Go Back   MapPoint Forums > Blogs > George Altieri

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Rate this Entry
-->

Opening an existing data set

Posted 02-19-2008 at 11:22 AM by George Altieri
I am having trouble connecting to my data set. It looks like my code for entering the path is correct.
Set objDS=objApp.OpenMap(objApp.Path & "
Data Base File Name
When I enter this it is not accepted.

Total Comments 1

Comments

Old
lfdmike's Avatar
I believe that the OpenMap method only works to open a map, and does not by itself connect you to a datasource. The filename reference is for which map you want to open, either one of your own or the default map- either way it will be a .ptm file.

An option for you may be to open MP on its own, and create a map linked to your datasource. Then save this map. For simplicity sake I will call it ds1.ptm

Then you can open it like this
Code:
Sub OpenDS1()
   Dim objApp As New MapPoint.Application
   objApp.Visible = True
   objApp.UserControl = True
   objApp.OpenMap objApp.Path +"ds1.ptm"
End Sub
permalink
Posted 02-20-2008 at 09:36 AM by lfdmike lfdmike is offline
 
Recent Blog Entries by George Altieri

All times are GMT -5. The time now is 01:11 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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