I would like to express my thanks to all. The answer is that there was another criteria where the class status was incorrectly being checked. I do not know why all prior classes have a cancel status in them but they do. the coding that I have posted works just beautifully with the exception of the check for class status. Problem is solved.