Break points not responding

A

Alejandro

Good morning,

I'm trying to find errors in my code and for some reason the break points
are not working. I add a breakpoint, run the code, and I get an error message
in a line way below the breakpoint. What should I be checking for to make
sure breakpoints work? I already went to Tools->Startup and made sure all
checkboxes were checked off. What else do I need to do?

Thanks for your help!

A.
 
M

Michel Walsh

The debugger can run fine. If you stop point is inside a loop (whatever kind
of loop, of an if then else part) which is not executed. then, it can stop
on an error geographically below your stop point:

if test then
* stop point here
end if
+ your_code_stops_here_in_error



is quite possible if the test evaluates to false.




Vanderghast, Access MVP
 
J

Jim Burke in Novi

Put a break point at the first statement of that area of code (more than
likely a sub or function). If it doesn't stop there you have a problem. My
guess is, like Michel said, you're simply not getting to the code that has
the breakpoint. If it does stop at the new breakpoint at the beginning of the
code, step through the code one statement at a time to see where your problem
is.
 
A

Alejandro

Thanks for your responses, guys. Actually I had the break point at the top of
the code. I compacted and repaired the file and now it works.

Thanks!
 
T

Tony Toews [MVP]

Alejandro said:
Thanks for your responses, guys. Actually I had the break point at the top of
the code. I compacted and repaired the file and now it works.

I recall having a few strangenesses myself so I've been using Stop
statements.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 

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