Richardco,

there is no need to start two different threads regarding the same thing.

see my reply HERE

and please see THIS

We are willing to help you help yourself, but we will certainly not provide you with a ready to run piece of code for your particular application.