• Thank you so much for the example code above - I think I'm close to cracking it using the article Thom provided.

    I wasn't sure if the problem was solvable so just wanted to know if the theory was possible.

    Thank you all for replying and pointing me in the right direction, it's much appreciated.