• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Debugging: Your Key to Succe... > Practical Examples: Debugging Real A...

Practical Examples: Debugging Real Applications

As you develop the Time and Billing application, use the techniques you learned to help solve any problems you encounter. For now, use the debugger to step through and learn more about the debugging process with one of the routines found in the Time and Billing application.

Open the frmClients form in CHAP16.MDB in Design view. Place a breakpoint on the line of code If IsNull(Me![ClientID]) Then found in the View Project's button Click event. (See Figure 16.19.) Run the form and click the View Projects command button. Step through the code and watch it execute. After a couple of steps, you should get the error shown in Figure 16.20. This error is a great example of the debugger interacting negatively with the environment. In fact, if you continue to step through the code, you will find yourself in an endless loop. The code is attempting to issue a command from the Form menu bar while you are in the Debug window. Remove the breakpoint and add a breakpoint on the DoCmd.OpenForm line.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint