Problem with debugging in modules

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top