Hello everyone. I am trying to import a CSV file and display it as a DataMap. The code is shown below
Dim objApp As MappointControl
Dim oDD As MapPoint.DataSets
Dim oDS As MapPoint.DataSet
Dim DM As MapPoint.DataMap
szConn = "C:\testfile.csv"
Set oDD = objApp.ActiveMap.DataSets
Set oDS = oDD.ImportData(szConn, , _
geoCountryDefault, _
geoDelimiterComma, _
geoImportFirstRowIsHeadings)
Set DM = oDS.DisplayDataMap(geoDataMapTypeShadedArea)
I get RTE 91 Object Variable or With Block not set. Its objecting to the line:
Set oDD = objApp.ActiveMap.DataSets
I have played around with this to no avail. I'm sure it is something simple but it has escaped me so far and I would appreciate any suggestions.