Jump: Search:

Microsoft Access Developer Center

Table Design

Query Design

Form Design

Form Tips and Mistakes

Form Navigation Caption

Using a RecordsetClone

Synchronize Two Subforms

Late Bind Tab Subforms

Subform Reference to Control Rather than Field

Tab Page Reference


Combo Box Top Tips

Properties and Validation

Select First Item

Cascading Combo Boxes

Zip, City, State AutoFill

Report Design

Suppressing Page Headers and Footers on the First Page of Your Report

Add the NoData Event

Annual Monthly Crosstab Columns

Design Environment

Adding Buttons to the Quick Access Toolbar

Collapsing the Office Ribbon for more space

VBA Programming

Using Nz() to Handle Nulls

Avoiding Exits in the Body of a Procedure

Debugging Keys

Setting Module Options

Math Rounding Issues

Source Code Library

Microsoft Access Module VBA Library

Royalty Free VBA Modules

VBA Error Handling

Error Handling and Debugging Techniques

Error Number and Description Reference

Basic Error Handling

Pinpointing the Error Line

Performance Tips

Linked Database

Subsheet Name

Visual Source Safe

Deployment

Prevent Close Box

Disable Design Changes

Broken References

Simulating Runtime

Missing Package & Deployment Wizard

Microsoft Access Front-End Deployment

System Admin

Disaster Recovery Plan

Compact Database

Compact on Close

Database Corruption

Decompile Database

Bad DLL Calling Convention

Converting ACCDB to MDB

Cloud and Azure

Cloud Implications

MS Access and SQL Azure

Deploying MS Access Linked to SQL Azure

Additional Resources

Microsoft Access Help

MS Access Developer Programming

More Microsoft Access Tips

Technical Papers

Microsoft Access Tools

Connect with Us

Email NewsletterEmail Newsletter

FMS Development Team BlogDeveloper Team Blog

Facebook PageFacebook

Twitter with FMSTwitter

 

 

Debugging Keys for VBA, Access and Visual Basic Developers

Provided by: Luke Chung, President of FMS, Inc.

Microsoft Access, VBA, and Visual Basic developers are blessed by a powerful code debugging environment. Learning its features will help you code better and faster, and simplify applications testing and maintenance.

In addition to being able to change your code (within reason) while in the debugger, you have the immediate window, locals window, watch window, call stack and other resources under the View menu to help you debug and understand what your code is doing. Make sure you learn what these windows can do for you.

As you examine your code line-by-line, here are some keystrokes every VB/VBA developer should use within the IDE:

Keystroke Description - Shift-F2 Put the cursor on the variable, procedure, or property in question and press [Shift-F2] to see where it’s defined. You’ll jump directly to it. You can do this as often as you like to understand how your code works.

Ctrl-Shift-F2 Go back to where you came when you pressed [Shift F2]
F9 Set (or reset) a breakpoint to stop the program when it gets to this line
F5 Run the current procedure (if it doesn’t require parameters)
F8 Run the current line
Shift-F8 Step over the line by running the procedure on the current line without going into it and stepping through each line
Ctrl-Shift-F8 Run through the rest of the current procedure (useful if you no longer need to examine the procedure)
Ctrl-F9 Set the next statement (jump over existing code)

For more tips on debugging, read Luke Chung’s technical paper on Microsoft Access VBA/VB6 Debugging Tips and Techniques.

Feedback

Contact Us  l   Web questions: Webmaster   l   Copyright © FMS, Inc., Vienna, Virginia
Celebrating our 26th Year of Software Excellence