Anonymous
07-03-2003, 02:25 AM
I have the following code that imports and maps an access database.
All I need at this stage is to create a route between all the records. I am new to VB and MPP and know I need waypoints.
Any assistance is greatly appreciated.
Private Sub Form_Load()
Dim objApp As New MapPoint.Application
Dim szconn As String
Dim oDS As MapPoint.DataSet
Dim num As Integer
objApp.Visible = True
objApp.UserControl = True
Me.Hide
With objApp.ActiveMap.DataSets
szconn = "C:\Jobs\MappointDEV\Eden\Mapp_routes.mdb!R101_D1_F 4"
Set oDS = .ImportData(szconn, , geoCountryFrance, , geoImportAccessTable)
End With
oDS.ZoomTo
End Sub
All I need at this stage is to create a route between all the records. I am new to VB and MPP and know I need waypoints.
Any assistance is greatly appreciated.
Private Sub Form_Load()
Dim objApp As New MapPoint.Application
Dim szconn As String
Dim oDS As MapPoint.DataSet
Dim num As Integer
objApp.Visible = True
objApp.UserControl = True
Me.Hide
With objApp.ActiveMap.DataSets
szconn = "C:\Jobs\MappointDEV\Eden\Mapp_routes.mdb!R101_D1_F 4"
Set oDS = .ImportData(szconn, , geoCountryFrance, , geoImportAccessTable)
End With
oDS.ZoomTo
End Sub