Solved

How to access the VBA callstack

Posted on 2010-11-17
3
875 Views
Last Modified: 2013-11-27
How can I access the VBA callstack via code?
I didn't know this was even possible before I read this webpage: http://www.everythingaccess.com/vbwatchdog/callstack.htm
0
Comment
Question by:Milewskp
3 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 34156024
why don't you download the sampledb and see it in action?
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 34156185
<<How can I access the VBA callstack via code? >>

  You can't normally, but apparently they've dug into the VBA internals and figured out where the call stack lives in memory.  But there is nothing you on your own can do to read the call stack that I'm aware of.

  You can maintain your own stack by maintaing a collection and then popping things on and off as you enter and exit procedures, but you can't get at the VBA call stack through VBA itself.

JimD.
0
 
LVL 1

Author Closing Comment

by:Milewskp
ID: 34156388
Thanks Jim.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

785 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