Hi Aleksey,
Thanks for your response. Unfortunately, it still doesn't solve my problem. I can create a create a subquery as you suggest, but what I don't seem to be able to do is link the identifier in the subquery back to the identifier in the main query. I feel certain that this can be done, but how to do that eludes me. Any ideas?
Best,
Paul