Thanks Everyone again for you help, David your method does what I needed, so thanks, vbaInet your method I think will work but I was having a problem, with the LEN statement in your code as it kept losing the last letter of the name of the Qry, anyway problem fixed, thank for all your help.