Hello all, Thanks for the help from various people. It was down to the act that it didn't like that category_order had to have a value assigned. Its now working on both counts. Regards, David