Solved

Any way to trace code

Posted on 2007-12-04
2
834 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Error 438 6 50
Update Table via VBA SQL with multiple criteria 2 66
Excel graph in access report 1 32
How to build a logic for passwords according to initials? 13 44
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

737 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