Thanks both, I'll try my program the other way round and see if it makes any difference.

There are other things at play, so this might be a red herring.

Adrian.