Alastair, I realise I could do this but don't want to write extra data to the table. Also I believe a hash would be better than a random string as it would guarantee that it was unique (I believe). Regards, Pete