Thank you dxw00d,
and sorry for my slovenly question asking
I was not being lazy I just thought that I had provided enough code to illustrate my dilemma. It's easy when you know how and why.Thank you for your prompt reply and have a nice day
Pedro.