Thanks very much.... I find this kind of thing very difficult to conceptualize, your replies have given me some impetus in the right direction!
I'll post my code when I get home from work, but it certainly helps to know the kind of approach I need.
Cheers,
Drew.