Mohan, thank you for your full example - it works. now I'm trying to extend this example to my application regards Maciek