Problems with breakpoints

NeilK

New member
Local time
Today, 08:00
Joined
Aug 24, 2004
Messages
6
Hi,

I have a problem with my VBA code that I can't figure out. Well, actually the code seems to work, but when I add a breakpoint the code does not stop. The breakpoint doesn't seem to get recognized at all.

I have written text to the Immediate Window to make sure that my functions with breakpoints are being run, and the code does get run. There may be a very simple solution (an ignore breakpoints option?), but I can't find anything in the help. Also, breakpoints in this database use to work fine, then one day they just stopped.

Any ideas? Thanks!
 
Neil,

Hard to tell without seeing it, but there are two things you can do:

1) Do a Compact/Repair (why not ...)

2) Instead of a breakpoint, insert a line with STOP! That'll stop it. Maybe
your code is not even running (wrong event?)

Wayne
 
Will it let you put a breakpoint on non-valid 'Breakpoint' line?

???
kh
 
Breakpoints not working

1) I am certain my code is executing, as I am printing strings to the immediate window after the breakpoint
2) The STOP command didn't work
3) The compact/repair didn't fix the problem either

Any more ideas? This has had me stumped for a while.
 
Neil,

If STOP didn't "Stop" then, your code is not executing! Maybe you have
the wrong event.

Wayne
 
You can place Stop statements anywhere in procedures to suspend execution. Using the Stop statement is similar to setting a breakpoint in the code.
Listen to what Wayne suggests. You could throw in a couple of message boxes just to test at what point the code is not working [or not working at all]. Add a message box to the beginning of the events in question just to determine which events are being triggered.
 
Fixed

Thank you very much! This worked! The article suggested using the STOP keyword, which did not work for me, but checking the 'Use Special Access Keys' option did.
 

Users who are viewing this thread

Back
Top Bottom