Thanks very much guys for your input.
techgnome's solution worked a treat thanks