Breakpoints Not Working?

J

Joe

Hello all!
I'm having a problem with breakpoints in certain dbs.
Does anyone know what would stop breakpoints from
working? I made sure that SetWarnings were on using a
macro and they still don't work. Could this be a security
issue or anything else? Breakpoints work for me in other
dBs without security.
Any insight is greatly appreciated

Thanks,
Joe
 
J

Jim Shaw

Not sure of your experience level nor how you know your breakpoint are not
working.... I too thought they weren't working in my db till I figured out
what was going on. For reference, the context of my experience: All of my
code is in VB; I make no usage of macros.

1. If you don't hit the breakpoint, it doesn't break. (Sounds patronizing
and stupid doesn't it?) I thought I knew what my logic was doing, but in
reality it was doing something else. Setting an earlier breakpoint showed
this to me.

2. Compile errors were causing breaks before I got to my break points. This
happened even thought the compile error was past my logical breakpoint.
Running a test Compile off the debug menu showed me those problems.

My point is, try to get out of the mindset your are in and come at your
problem from a different perspective. Things may not be as they seem..

Group: Anyone else want to jump in here?

-Jim
 
J

Jeff Boyce

Jim

Sounds like my experience, too! I was CERTAIN the logic was running and the
breakpoint was failing, but an earlier breakpoint showed that the logic
never got to the 'point in question.

Jeff Boyce
<Access MVP>
 
G

Guest

Hey guys! I tried what you suggested and I still can't
use breakpoints in certain DBs. The weird thing is: if I
run a module with breakpoints in another DB, the
breakpoints work. However, when I import/run this module
in the problematic DBs they do not work. Throwing a
dialog box in works. Could this be a security setting in
the problematic DBs? Thanks again.
 
J

Jeff Boyce

Or a subtly corrupt db... Have you opened a new, empty .mdb file and
imported all objects?

Give it a try, and see if the problem persists.

Good luck

Jeff Boyce
<Access MVP>
 
J

Jim Shaw

I'm feeling stupid again, but when you import a module into your db, do you
expect that the breakpoint toggle setting is imported too? I would expect a
need to reset the toggle after importing.
Maybe I don't understand what you mean by "import/run" ?
-Jim
 

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