After re reading Marks reply about global variables within the variables window and writing to the action log, its not as difficult as I first thought.
I'll look at the results today and see if I can get this to work.
Thank you for your help Mark and mcbee