Thanks Marco. It seems to be working fine today so maybe there was some sort of glitch at the Oracle end. Last week it would consistently fail, but today it consistently works, without any changes to the code.

Thanks anyway for your help.

Regards,

Steve