LinkData with UDL file in VB 6 App

Wim
11-13-2002, 07:32 AM
Hello All,

I am writing an app in VB6 which uses Mappoint 2002. I have a SQL Server back-end database with a table called "tbl_Test" which contains some location data I want to visualize on a map.

Everything works fine except for the LinkData method of the DataSets object.

Can somebody post an example whichs shows how I van link the data.

My code is posted below:

Dim myDataSet As MapPointCtl.DataSet

Set myDataSet = ctrlMappoint.ActiveMap.DataSets.LinkData("File Name=" & App.Path & "\data\someapp.udl!tbl_Test", "ID", , geoCountryBelgium)


Greetings,

Wim.

Anonymous
04-03-2003, 06:04 AM
loose the "filename="

 
Web mp2kmag.com
mapforums.com