Results 1 to 7 of 7
  1. #1
    cboshdave is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    16

    Autoexec Macro details?

    First, I am fairly new to Access and newbie on 2010. I have done a lot of other coding though. I am trying to setup an Autoexec macro but I would prefer to use straight VBA code. I tried to put in a RunCode option but I can't seem to figure how to refer to the vba module I want it to run. I guess I don't have that much code though. But I don't know how to call the simple "DoCmd.ShowToolbar "Ribbon", acToolbarNo" within the interactive window that Access is providing. At this point, I don't care which approach I guess. I just need it to work.

    Thanks,
    Dave


  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    What are you really trying to do? Do you want to customize the ribbon? This thread describes how I customize ribbon http://forums.aspfree.com/microsoft-...at-303789.html
    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.

  3. #3
    cboshdave is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    16
    yeah... That is good. I am trying to be MUCH more simple though. My autoexec file seems to be forcing me into the macro window. That help screen to build macros. I just want the code window for VBA though. I know how to get to the code window if using buttons, but not the autoexec. Can't I just get the code window?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    I never used autoxec macro. You want the macro to open the VBA editor? I don't know if that can be done and why would you want to?
    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.

  5. #5
    cboshdave is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    16
    No, I just want to create my autoexec in the VBA editor, NOT the macro help window.

  6. #6
    cboshdave is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    16
    I downloaded your code. That is fine. I just don't know how to see how you did it though. Can I break out of runtime and see the code? I don't know how to do that.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Autoexec macro has nothing to do with VBA. Open the VBA editor from ribbon button under Database Tools.

    Hold down shift key when opening database and customization options will not execute and you can then examine the code.
    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. Replies: 7
    Last Post: 06-14-2012, 01:54 PM
  2. Help Stopping AutoExec Macro
    By drewetzel in forum Access
    Replies: 2
    Last Post: 10-03-2011, 10:51 AM
  3. Replies: 2
    Last Post: 06-20-2011, 09:20 AM
  4. Out of control loop in autoexec macro
    By accessnewbie in forum Programming
    Replies: 2
    Last Post: 08-19-2010, 04:31 PM
  5. Using parameter in autoexec macro
    By lchurch in forum Queries
    Replies: 0
    Last Post: 03-04-2009, 06:22 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