Thanks for the code Howard. I have tested it at work and found that it works. I don't know, what mistakes I have made. I will code my script based on your script.
_________________________
Jens Kalski