Results 1 to 4 of 4
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Seeing VBA code associated with a MS Access 2010 form

    Each form in MS Access 2010 has its own associated VBA code. So if I am looking at a form how do I see the code associated with that VBA form?



    I tried alt-F11 and it seems to work, but not all of the time. Sometimes it fails.

    So maybe there is way more sure fire way to see the code associated with the form.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Alt-F11 should open the code editor. Normally there's a window to the left that lists all the forms and reports with code plus modules. If you don't see that, click on View/Project Explorer. You can double click on any item in it to see that code.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Under Design on the far left is a View Code icon.

  4. #4
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Is it possible to go in reverse? I have some VBA code in a project that I have been unable associate with a form. It is the first to print out when I print the project and it does have a form name associated with it. I be darned if I can find the form though..


    So instead of trying every form in the db and seeing if the VBA code matches. I could start with the code and then associate the correct form from the code.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

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

Similar Threads

  1. Replies: 5
    Last Post: 05-31-2016, 05:18 PM
  2. Replies: 47
    Last Post: 05-31-2014, 02:22 PM
  3. Replies: 12
    Last Post: 01-07-2013, 03:32 PM
  4. HELP>Access 2010 User Login Form Code.
    By zaaimanm in forum Programming
    Replies: 5
    Last Post: 10-22-2012, 07:28 PM
  5. How to you tell Access 2010 to run VBA code?
    By vickimurray in forum Programming
    Replies: 18
    Last Post: 08-16-2012, 02:25 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