thanks john, and apologies for not replying sooner. the client asking for this function changed their mind about needing it so this has become a self-improvement issue for me and thus has slipped in priority.
thanks for the pointers, i think i see what you mean and although i’ve not had a chance to test anything yet i’ll try and get it working as you suggest.