vb question

Posted on 2006-03-20
Last Modified: 2010-04-07
I have an app that is somehow getting lost someplace, and I can't figure out what is going on.

I enter a function, have a stop at the end and sometimes my program never hits the end.
It isn't freezing, I just don't know what step it is on.

I am communicating via a com port with another machine, and if I step through the program, I can't replicate it.

Pretty much, I was wondering, is there any way to figure out the last few functions where the program executed?

Is there a way to trace the path of functions?

Question by:jackjohnson44
    LVL 11

    Accepted Solution

    LVL 85

    Assisted Solution

    by:Mike Tomlinson
    You're best bet is to simply start spattering your subs/functions with either Debug.Print "you are here..." or use MsgBox "you are here..."

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    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 …
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    732 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

    25 Experts available now in Live!

    Get 1:1 Help Now