Solved

Any way to trace code

Posted on 2007-12-04
2
800 Views
Last Modified: 2013-11-27
I need to trace the route an execution takes through some code.

1. Is there a built-in function to record the names of all handlers that are executed (including the name of the form within which they reside)?

2. I know I can create a table, then in each handler I can record the desired information.  Is there some VBA syntax that will allow me to record the name of the form and the name of the handler without having to hard code that info in each statement?  e.g. Form.Name, CurrentHandler.Name
0
Comment
Question by:wsturdev
2 Comments
 
LVL 10

Expert Comment

by:LennyGray
ID: 20402817
you need to go into the code section of the function or event sub that you are interested in tracing. Right click the left of a line that you want exeution to stop at. When execution stops, invokethe immediate window and use the syntax starting with a question mark. Like if you wanted to see a variable value you would type ?sTheVariableName and then hit [Enter]. There you would see the current value of the variable. F8 advances the code line-by-line.

Look up help on debugging.

Good Luck !!!
0
 
LVL 39

Accepted Solution

by:
stevbe earned 500 total points
ID: 20403086
Access is very weak in this area ...

1. No.
2. No.

Access developer's handbook has a class module that stores this stuff in memory and only writes it our when there is an error, I am sure you could modify it to log everything.

Steve
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now