How can breakpoints stop responding?

G

Guest

I checked the "Error Trapping" option in the VB Editor's Options dialog. It
is set to "Break on All Errors" Is there something I'm missing? I
closed/reopened the database, restarted Access, even rebooted the
machine...no luck.

To illustrate what happens, I built a simple form with no data source and
there are no controls on the form. The only code I have is this...

Private Sub Detail_Click()
MsgBox Now()
End Sub

I inserted a breakpoint at the MsgBox command. I open the form, click away,
I get my popup with the current time, and no sight of the breakpoint. As far
as I can tell, it doesn't error out either. I even changed it to MsBox and
it does nothing. No error, no warning, no nothing.

What gives?
 
D

Dirk Goldgar

Moses Bunting said:
I checked the "Error Trapping" option in the VB Editor's Options
dialog. It is set to "Break on All Errors" Is there something I'm
missing? I closed/reopened the database, restarted Access, even
rebooted the machine...no luck.

To illustrate what happens, I built a simple form with no data source
and there are no controls on the form. The only code I have is
this...

Private Sub Detail_Click()
MsgBox Now()
End Sub

I inserted a breakpoint at the MsgBox command. I open the form,
click away, I get my popup with the current time, and no sight of the
breakpoint. As far as I can tell, it doesn't error out either. I
even changed it to MsBox and it does nothing. No error, no warning,
no nothing.

What gives?

This will happen if you have unchecked the "Use Access Special Keys"
option on the Tools -> Startup... dialog. If you want breakpoints to
work, you must check that box.
 

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