ACC2002: Breakpoints Are Ignored in Visual Basic for Applications Code (299257)
The information in this article applies to:
This article was previously published under Q299257 Moderate: Requires basic macro, coding, and interoperability
skills.
This article applies to a Microsoft Access database (.mdb) and to a
Microsoft Access project (.adp).
SYMPTOMS When you add a breakpoint to a Visual Basic for
Applications (VBA) procedure or function, the breakpoint is ignored and the
code runs to completion without pausing, as you would expect. CAUSE This behavior is by design and occurs when the advanced
startup option Use Special Access Keys is disabled. RESOLUTION Enable the Use Special Access Keys startup option. To do so, follow these steps:
- Open the database in which the breakpoint has been
set.
- On the Tools Menu, click Startup.
- In the Startup dialog box, click to select the Use Special Access Keys check box.
- Click OK to close the Startup dialog box.
- Close and then reopen the database.
- Run the code that contains the breakpoint. Note that
execution of the code pauses at the breakpoint, as you would expect.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbprb KB299257 |
---|
|