Solved

Any way to trace code

Posted on 2007-12-04
2
839 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

717 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