OK, but if I change it to once per market won't it just add one to myvar after the first selection that won it's last race, and not check for any others?
I only want one runner in the race to have won its last race. So if two runners have won their last races I want myvar to be equal to 2 three runners myvar 3 and so on, so bet is only placed if myvar 1.
Mike