PMFJI but if it aren't broken ...
>Thanks, Craig. Do you think it's a good idea to slightly improve the code? E.g. I glanced at it yesterday and noticed the loop through array of relations. In our current database we have 252 relations (sic!) So my thought was that we can use ascan instead. But I don't know if it's worth the effort or the code is executed fast enough anyway.
--sb--