Access 2007 - can't break into code on close of form

I have some code that runs on close of a form. The code has extensive error handling, returns no errors when it runs, and appears to execute all operations. However, when I set breakpoints for diagnostic purposes they are ignored and the code runs to completion and the form closes. I stuck in a bunch of message boxes to track what the code is doing, and they all pop up as expected; however, if I attempt to break into the code at a MsgBox <CTRL+Break> the code just runs to completion and the form closes. Does anybody have any suggestions?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
place a { stop } command

private sub ....
stop  'add this
dgmoore1Author Commented:
I put in a stop command as you suggested, but it is ignored as well. I think I'll rebuild the form and see if that helps
Rey Obrero (Capricorn1)Commented:
do a debug>compile and clear all errors raised..

and you maybe right about creating a new form, your current form is probably corrupted.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dgmoore1Author Commented:
Recreating the form solved the problem, so corruption was the culprit. The stop command suggestion was a good one, though, and I'll keep it in mind for the future
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.