I held off on replying to this post because I thought some one might provide the solution.
I don't have it handy but I am pretty sure that I have the code to do this somewhere in one of my databases. I will try and find it when I get back to work and post it for you.