Invoking the Debugger
You can invoke the Access debugger in several ways:
- Place a breakpoint in your code.
- Place a watch in your code.
- Press Ctrl+Break while the code is running.
- Insert a Stop statement in your code.
A breakpoint is an unconditional point at which you want to suspend code execution. It is temporary because it is in effect only while the database is open. In other words, Access does not save breakpoints with the database.A watch is a condition under which you want to suspend code execution. You might want to suspend code execution when a counter variable reaches a specific value, for example. A watch also is temporary; Access removes it after you close the database.A Stop statement is permanent. In fact, if you forget to remove Stop statements from your code, your application stops execution while the user is running it.