Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    395

    Unanswered: have another question

    Hi Igor,

    Thanks for your help on the textbox.
    Do you know anything about using step into?
    Could you help me step into the step into process?

  2. #2
    Join Date
    Nov 2001
    Posts
    336
    Hi,

    In Ms Access VBA help file there is topic: "Step through Visual Basic code".
    It should answer your question.


    I pasted it below for your convenience:

    *------------
    Step through Visual Basic code
    Stepping through your Visual Basic code can help you identify where an error is occurring. You can see whether each line of code produces the results you expect.

    Suspend execution of the code.
    How?

    Microsoft Access displays the line of code where execution is suspended.

    Do one of the following:
    To step through each line of code and into the code in a procedure called by another procedure, click Step Into on the Debug toolbar.


    To step through each line of code but run as a unit any procedure that is called, click Step Over on the Debug toolbar.


    To run the code that precedes the current line of code, and then break so you can step through each line of code, click Run To Cursor on the Debug menu.


    To run the rest of the current procedure, and then return to the next line of code in the preceding procedure in the call tree, click Step Out on the toolbar.
    Note You can use Step Into without suspending code execution. In the Visual Basic Editor Code window, place your cursor in the procedure you want to step through, and click Step Into on the toolbar.

    You can alternate between these types of stepping. The type of stepping you do depends on which portions of code you want to analyze.
    *----------

  3. #3
    Join Date
    May 2002
    Posts
    395
    I appreciate your help.
    I'm afraid I'm still where I was before. I have went through the step into in VB Help several times(same as what you sent me)and still can't get working. I get orange/red high lite on the line of code to show the break point is set, but I can't yellow high lite to do step into. I must be missing/not clicking on some keys.
    Thanks for your trouble.

    Have a good day!

  4. #4
    Join Date
    Nov 2001
    Posts
    336
    Hi,

    For instance you want to debug code in click event of a command button placed on a form.

    1. Enter Stop statement just before your code.
    2. Open your form.
    3. Click on the button.

    HTH, Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •