Thanks for the tips Alimonster. I'm a bit to tired now and then I'll be gone for a couple of days, but then I will have a second look at my code based on your reply. If I get any troubles I know who to call.