Thank you very much for your replies. I have it working now.

The links frank sent sorted everything out.

Gary