why do all the looping and date conversions? Doesn't one of these work for you?Again, you can use the front end presentation software to format the [Month] column as MM\YYYY

I think the reason your code is not "breaking" after current date is because you are "continueing" before your test for current date. Maybe if you remove the "else continue"s the code will fall through to the loop's END block allowing all your checks to be evaluated.