Dave: Thanks for your reply. That was precisely my problem and I guess it's time for me to feel stupid. I was looking for a complex solution and a simple one was staring me in the face. Oh well, it's not the first time that's happened and it probably won't be the last. Thanks again, it's working fine.