Tanx for the answer.
Yea, i agree. I should split up the script. I already have an other mapdrive function that i'll use:)
But is easier to do testing with everything in one function..
Regards
BT