Thanks to everybody for the assistance and for the sample code.
It is working very well now.
regards
Ambro