Thanks Carl,
As you can guess I played around with this a fair bit to get it to work. I wasn’t sure about that line, but it all seemed to work fine. I will make the suggest change.
That line #do major db stuff to collect and process gobs of data
has undergone major changes this week. I’ll try and post that in a separate thread later.