Step through Visual Basic code

Step through Visual Basic code

Stepping through your Visual Basic code can help you identify where an error is occurring. You can see whether each line of code produces the results you expect.

  1. Suspend execution of the code.

    How?

    Microsoft Access displays the line of code where execution is suspended.

  2. Do one of the following:

Note   You can use Step Into without suspending code execution. In the Visual Basic Editor Code window, place your cursor in the procedure you want to step through, and click Step Into on the toolbar.

You can alternate between these types of stepping. The type of stepping you do depends on which portions of code you want to analyze.