$ 0 0 Glad you found the answer. Unfortunately there isn't a way to deal with unknown hierarchy depth, so you just have to create enough levels. Regards Rob