Erdin,
Many thanks, that did the trick. I still have a lot to learn about data types in this language, I'm more used to Visual Studio where things seems a little more straightforward...!
I would have replied earlier but we seem to have lost the forum for a day?
Thanks