Thanks for sharing the solution Rasm.... can you post the whole code for posterity