• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Debugging: Your Key to Succe... > Working with Watch Expressions

Working with Watch Expressions

Sometimes it is not enough to use the Debug window to test the value of an expression or variable. You might want to keep a constant eye on the expression's value. A feature introduced in Access 95 was the capability to set watches. You can set a watch before running a procedure or while code execution is suspended. After a Watch expression is added, it appears in the Debug window. As you'll see, you can create several types of watches.

Using Auto Data Tips

The quickest and easiest way to view the value contained in a variable is to use Auto Data Tips, which is an available option for working with modules. This feature is available only when your code is in Break mode. While in Break mode, simply move your mouse over the variable or expression containing the value you want to check. A tip appears with the current value. To set the Auto Data Tips option, choose Tools|Options, click the Module tab, and check the option for Auto Data Tips, which is under the Coding options.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint