I've made a change to an app that's been running for years. After adding
some code, now the debugger breaks in at a particular line even though I have
no breakpoint set there - I've Cleared All Breakpoints from the Debug menu.
If I click continue, the app continues without error. I need this code to
keep running - the users will not know what to do and shouldn't have to deal
with it anyway. Any ideas?
Here is a past post by Gunny on this issue:
Sounds like the debugger settings were saved the last time a break point was
set at that line of code. You can open and close the database repeatedly,
and the problem remains.
To fix it, open the database, then open the form in Form View. Press
<ALT><F11> to open the VB Editor. Click the "Reset" button on the toolbar
three times. (Answer to question I know you are going to ask: Because
sometimes twice just isn't enough.) Select the Debug menu -> Compile
<DatabaseName>, just in case the code wasn't already compiled.
Press <ALT><Q> to return to Access. Select the Tools menu -> Database
Utilities -> Compact and Repair Database to compact the database. When
finished, close the database. Open the database again and open the form in
Form View, then enter text into the field that has recently been causing the
problem. The problem should be gone because you've removed the ghost
breakpoint.
And next time you are stepping through code, don't make any changes to the
code. That's what causes the ghost breakpoints.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
Good luck,