In the immediate window, choose the line where you want the code to stop so
you can single step.
Click in the very far left of that line, and the line will be highlighted
(often red).
That is called Setting a breakpoint.
Now run the code by opening the form and using the buttons etc.
When access gets to the line with the breakpoint, the immediate window will
open.
Press F8 to move to the next line of code.
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
The immediate window is where I would go to
view the output of "Debug.Print". Unless I'm
[quoted text clipped - 19 lines]