Long, I know but it does the trick. It has to do with the booleaness of if statements. The way you were doing it was saying...if szCompletion == "Y" or y or YES or Yes. Only the first boolean was checked but the rest were not really checking anything because there was no assignment to them. You have to explicitly tell it what to do.