Form opens in Debug mode

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?
 
K

Ken Snell

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.
 
D

Dirk Goldgar

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top