Thank you Patrick. I now feel particularly silly as I hadn't read that particular occurrence of the error message.
I'd been trying for several hours to activate the view and kept getting the undefined type code error. I hadn't noticed the presence of the CategoryID in the error.
I'll fix the CategoryID and cross my fingers that it fixes it.
Thanks very much for taking the time to help me out.
Very much appreciated.
Martyn.