Best Way to Debug Startup Code?

P

paul.schrum

Access 2003, DAO

I need to debug code which is called on startup. Of course, the code
executes before I have a chance to set a break via the VBA IDE/editor.

What is the recommended way around this? Is there a hard-coded break
I can insert which will raise the IDE yet not cause an error
condition?

TIA.

- Paul Schrum
 
B

Bob Quintal

@j39g2000yqn.googlegroups.co
m:
Access 2003, DAO

I need to debug code which is called on startup. Of course, the
code executes before I have a chance to set a break via the VBA
IDE/editor.

What is the recommended way around this? Is there a hard-coded
break I can insert which will raise the IDE yet not cause an error
condition?

TIA.

- Paul Schrum

Stop

Syntax

Stop

Remarks

You can place Stop statements anywhere in procedures to suspend
execution. Using the Stop statement is similar to setting a
breakpoint in the code.

The Stop statement suspends execution, but unlike End, it doesn't
close any files or clear variables, unless it is in a compiled
executable (.exe) file.
 

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