Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find code generating error

Status
Not open for further replies.

TimTDP

Technical User
Feb 15, 2004
373
ZA
In an Access 2000 module I have error handling code.
Without stepping through the code, how can I determine which line of code is generating the error?
 
Is it a runtime error you are trying to locate? If so turning off error trapping is one quick and easy way.

You can also put a stop/resume statement in your error handler:

Code:
TrapError:
    MsgBox Err.Description
    Stop
    Resume

The resume line will take you back to the line that generated the error.

Ed Metcalfe.

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top