Bug in my code and I cannot find it

OK, thanks for the help - it now works and the key was the change from <= to !=

Cheers

David