O'Reilly logo

F. Scott Barker's Microsoft® Access 2000 Power Programming by F. Scott Barker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

STOPPING PROGRAM EXECUTION

Bringing up the Immediate window during runtime is no problem. You can try to pause an application programmatically with either a Stop statement or a breakpoint. When placed in code, both methods will halt the execution of a piece of code and bring up the module editor, with the code line containing the Stop statement or breakpoint highlighted. You can have as many breakpoints and Stop statements in your code as you want.

Figure A.6 shows a Stop statement and a breakpoint set in the ap_AppInit() function, which is in the GlobalUtilities module.

Figure A.6. Breakpoints and Stop statements are two ways to stop execution at a specific point in code.

Note

You can't place Stop statements or breakpoints in comments, variable ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required