In an automation loop I want to delete some redundant datasets. The programme crashes every time at one dataset. That dataset icon looks like it is dashed and I can not delete it (not even manually).
The error is: “Method ‘Delete’ of object ‘IDataSet’ failed
The code used is:
If ActiveDatabase.ActiveFolder.ObjectExists(GroupName & “Count” & FreqName) Then
ActiveDatabase.ActiveFolder.Object(GroupName & “Count” & FreqName).Delete