Hi Stephane, Yes it of course it is that embarrassingly simple. I don't know why I was making such a meal of it. By the way I was looking at refactoring sql applications on amazon only last night so it's a coincidence that you replied. I guess you've earned a book sale now! Thanks a million, Fergal -- //www.freelists.org/webpage/oracle-l