Much as I enjoy having conversations line-by-line, posting some more code / error messages / things-you've-tested etc. might help a little in the analysis of this particular problem. In theory, the code there should work fine - if it's not working, it's probably to do with other stuff around it. Cheers Ben