Hello Sealeopard

Thanks for the reply.

I think your solution to do with the variables may fix the problem as when I replace the variables with fixed data the code works correctly.

Bye for now

Kevin
_________________________
Kevin Cowans Senior ICT Technician The Armthorpe School