I'm importing postcodes into a dataset on my map and then displaying the dataset as a shaded area within the map. I using the following code to do this:
szconn = "C:\MapPoint\MapData1.mdb!MapData_Table"
Set objdataset = objMap.DataSets.ImportData(szconn, "Postal District", geoCountryUnitedKingdom, , geoImportAccessTable)
Set objdatamap = objdataset.DisplayDataMap(geoDataMapTypeShadedArea , , , , , , 0)
I now want to get rid of all the datasets and the shaded area on the map but can't seem to do it, does anyone know a way of doing this?