Problem with debugging in modules

G

Guest

Hi,

I have an Access project with several modules, forms etc.

When I put a breakpoint on an event procedure (behind a form) and run the
form I want the code to break so I can debug it.

Also, in my code modules (not behind forms) I have the same problem - I can
type the name of the procedure in the Immediate Window and hit Enter, but
even though there is a breakpoint the code either isn't running, or it isn't
breaking.

Is there some way to enable debugging?

thanks

Philip
 
R

RoyVidar

Philip said:
Hi,

I have an Access project with several modules, forms etc.

When I put a breakpoint on an event procedure (behind a form) and run
the form I want the code to break so I can debug it.

Also, in my code modules (not behind forms) I have the same problem -
I can type the name of the procedure in the Immediate Window and hit
Enter, but even though there is a breakpoint the code either isn't
running, or it isn't breaking.

Is there some way to enable debugging?

thanks

Philip

In Tools | Startup, have you disabled the Use Access Special Keys?

That might also set the AllowBreakIntoCode property. Try checking
this, then close and reopen and see. If not, try some variations over
the following

With CurrentDB
.Properties("AllowSpecialKeys").Value = True
.Properties("AllowBreakIntoCode").Value = True
End If
 

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