Form opens in Debug mode

  • Thread starter Thread starter Karen Barrett
  • Start date Start date
K

Karen Barrett

The first time the form is opened, the first executable
line of a subform comes up highlighted in the code window
(there is no breakpoint set). If I just tell it to
continue, there is no further problem. Still this is
annoying. Any thoughts?
 
Could be a "phantom breakpoint" in the code....likely you had set a
breakpoint at this location once in the past and ACCESS is remembering it.

Try the following different things to get rid of it:

(1) Debug | Clear All Breakpoints

(2) Delete the line of code on which the break is occurring. Compile the
database. Reinsert the line of code of code. Compile the database.
 
Karen Barrett said:
The first time the form is opened, the first executable
line of a subform comes up highlighted in the code window
(there is no breakpoint set). If I just tell it to
continue, there is no further problem. Still this is
annoying. Any thoughts?

First thing to try -- it usually works for me: open the subform in
design view, open its code module in the VB Editor, modify some line of
code by typing a space at the end of it, then compile, close and save.

If that doesn't work, you could try decompiling your project using the
/decompile command-line switch. Be sure you have a good backup copy
before doing this, though, as there have been reports of it making
things worse, on rare occasions.
 
Back
Top