YES ! That did it.
I can sort of see what's going on with the SQL select. It's beyond my current skill level, I do have SQL selects and updates but I can see it can do some very powerful stuff that I should learn.
Thanks for spending the time on this, really pleased with the result