Thanks a lot, Sam (and others), thanks to your help I managed to finally produce the query I wanted.
Regards,mk