>>>Error #26 in Setorder line 6
>>>"SET ORDER TO TAG (m.cOrder) IN (THIS.cWorkarea)"
>>>Table has no index order set.
>>
>>Well the error is pretty self-explanatory. I would go into the debugger at this point and actually establish what values you have in m.cOrder and this.cWorkarea to see whether they are what you expect them to be.
>
>I already ckecked and they contain the right values.
Instead of putting the code to create the indexes in AfterUpdateAll I moved it to AfterRequery in the cmRule. Dave told me to do that. I'll keep you posted if something else comes out of this approach.
*******************************************************
Save a tree, eat a beaver.
Denis Chassé