locked
How do I Use the Debugger in Access to step thru line by line RRS feed

  • Question

  • I created a video, link is below, on what is happening when I'm trying to use the debugger in Access 2016

    Can someone put together a short video on how I can use the debugger and step thru my code line by line?

    I can't find anything online that will teach me this. The videos I've watched doesn't explain what i want to do nor does it help my resolve why I can't run my code line by line

    https://youtu.be/prM6ygHI-6c


    Keith Aul

    Saturday, September 3, 2016 3:43 AM

Answers

  • You cannot start the debugging process in a Private procedure or function. To debug the code in e.g. the event procedure

       Private MyButton_Click()

    put the cursor on this line and set a breakpoint by pressing F9 or in the menu by selecting Debug / Toggle Breakpoint. The line will be highlighted in red. Now open the form in Form View and click the button. This will get you to the breakpoint, and from now on you can Step Into the code with F8.

    Here is a  step-by-step tutorial

    Matthias Kläy, Kläy Computing AG

    • Proposed as answer by Chenchen Li Monday, September 5, 2016 7:59 AM
    • Marked as answer by Chenchen Li Tuesday, September 20, 2016 8:12 AM
    Saturday, September 3, 2016 8:22 AM