Results 1 to 5 of 5
  1. #1
    Buakaw is offline Absolute novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    112

    When studying a form...

    ...is there a way to quickly see a list of all the Visual Basic routines that are attached to the controls?



    Right now, I only know to do 2 things.
    1) Look at the form in design view, click each control one by one and right click to see Properties, and then see if it has an event handler.

    2) Look at the VB code, but then I don't know what action triggers each subroutine.

    What I'd like to see is which control triggers which subroutine. Is there a way to do this?

    Thanks.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You have the two methods pretty much pinned down. There is no easier way that I know of.

  3. #3
    Buakaw is offline Absolute novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    112
    Could I rephrase my quesiton another way. Say I'm going through the subroutines in a VB module, and I have no idea how a subroutine is called or who calls it.

    How would you go about figuring out who calls this subroutine, and when? Thanks!

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    What I'd like to see is which control triggers which subroutine. Is there a way to do this?
    the subroutine's name indicates which control and what event.

    e.g. when you see private sub command0_click(), you can tell this sub is triggered by command0's click event

  5. #5
    Buakaw is offline Absolute novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    112
    Quote Originally Posted by weekend00 View Post
    the subroutine's name indicates which control and what event.

    e.g. when you see private sub command0_click(), you can tell this sub is triggered by command0's click event
    That's awsome, thanks!

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums