Stepping thru form code

T

Terri

I've just upgraded from Access 97 to XP, and am now
getting familiar with the new Visual Basic interface.

One thing I am struggling with is how to debug a form
procedure by stepping through the code. In 97, I could
click on the "Step Into" button, go to my form and run
the procedure, and it would step me through the VBA code
line by line. This does not seem to work the same way
anymore in XP-? I checked the online help, and it says
you can use Step Into for "a procedure called by another
procedure." Does this mean you can no longer use it to
step through code attached to a form event? If not, is
there still a way to do this?

Thanks! Terri
 
C

Cheryl Fischer

The easiest way I've found to do this is to open the module where I want to
begin stepping through code and click once with the mouse in the left-side
border of the VBA code window on the line of code where I want stepping to
begin. If the line allows it (for example, Dim statements don't), you'll
see a dot appear in the border. Then just run the app and you'll be in the
debugger and can step through code with F8.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top