I noticed you posted this question quite a while ago, but I you don't seem to have got a reply yet. This is exactly what I am trying to do.
If you have managed to solve the problem yourself since then, please could you post the solution before I tear any more hair out .
Cheers!