Results 1 to 5 of 5
  1. #1
    RunTime91 is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    284

    How to view only the module containing the Event Procedure

    Greetings...

    I am working in an Access database and when I click on the ellipses to view an event for a Command Button on a form the VBE opens up the module I need along with 61 other modules.



    Is there any way to view only the module I need to see and prevent this 'mess' Access seems to enjoy creating each time I want to view a simple piece of code.


    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    at the bottom, left corner of the 'code' window are 2 buttons next to the horizontal slide.
    left btn shows 1 sub
    right btn shows ALL subs.

  3. #3
    RunTime91 is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2014
    Posts
    284
    Quote Originally Posted by ranman256 View Post
    at the bottom, left corner of the 'code' window are 2 buttons next to the horizontal slide.
    left btn shows 1 sub
    right btn shows ALL subs.
    Hey Ranman Thanks for chiming in ~

    Yes, those buttons work perfectly for subs in an individual window, but what I'm getting when I want to see the event procedure for a button on a single form is 62 separate modules opening (the one I need plus 61 more) for every form in the entire program.

    What I would like is to just see the module for the form the button is attached to. and not the other 61 modules.

    I hope I'm explaining this correctly...

    Thanks Ranman

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    I have that same problem. Something in Access keeps the other windows open.
    i've closed them, saved, compacted,
    but something remains behind and access opens them all!! $#%!

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I also found that annoying so I just maximum the VBA module window and then I don't see the others and I can forget they are there.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Event procedure
    By vugar in forum Access
    Replies: 3
    Last Post: 09-09-2014, 11:36 PM
  2. Form Event Procedure
    By Jgk in forum Forms
    Replies: 7
    Last Post: 03-30-2014, 04:31 PM
  3. Replies: 1
    Last Post: 03-29-2014, 07:46 PM
  4. Replies: 5
    Last Post: 12-03-2013, 01:25 PM
  5. Replies: 3
    Last Post: 05-07-2012, 12:17 PM

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