Thanks for the information. Now I know what causes the problem, I can work around it.
One more thing: My programme crashes if I change the ‘start of the class’ in the ‘class division’ using the following:
ActiveDatabase.SelectedObject.ClassDivisionParameter1 = -50
I got this by manually recording a macro.
Could this be wrong, and if so, what should it be?
It also crashes if I record the macro and then execute it.