Thanks a million Tinbendr - works like a dream.

Can't believe I didn't post on here sooner - been pulling my hair out for a long time over this!