Bob
Thanks for that. I cant check at the moment, but I think there will be a problem. This is the first instance of the query, so there won't be a table until the refresh has been carried out!
I will try it out in the morning and let you know what happens.
John
Bookmarks