Results 1 to 6 of 6
  1. #1
    SemiAuto40 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41

    Macros disabled by hiding shutterbar

    This is driving me nuts I use VBA in User Login to set access level and to hide the left side "shutterbar" and ribbon bars too - so that some users are limited to only do what won't confuse them or allow them to do dammage.



    When I place this line: DoCmd.SelectObject acTable,, True
    in the login I see the shutterbar (navigation pane) which is great..... but when I comment it out so that the shutterbar (navigation pane) disappears (like I want) THEN a macro inside the app throws an error that the macro is not available, of something to that effect.

    What do I need to do to hide nagivation pane yet still be able to use macros in my app???

    Thank you for anyone taking time to inform me.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Why are you selecting table?

    Is it a data macro? I don't use macros, only VBA, unless absolutely no way VBA can do it. I have resorted to macros twice.
    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
    SemiAuto40 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41
    The macro action is printing a table converted into HTML for easy browser viewing. Maybe I should see if the macro could be converted to VBA. Problem is still that hiding the table the way I do discombubulates the macro.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    I don't understand why hiding the Navigation pane causes hiccup with macro, never had reason to explore this. I do know that hidden Navigation pane has never been an issue with VBA. It is possible the issue is with the SelectObject method and even VBA could have problem. I have never used SelectObject. You could convert macro to VBA and see if the issue persists.

    Post your code and/or the project for analysis.
    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
    SemiAuto40 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41
    The actual error is "output to is not available now". Only happens when the line DoCmd.SelectObject acTable,, True is commented out.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Oh, I misread OP. The SelectObject line makes the Navigation pane visible then the macro runs okay? Could be the only alternative is to open the table with .OpenTable (with macro or VBA). The navigation pane will remain hidden.
    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: 3
    Last Post: 09-02-2011, 01:12 PM
  2. Search on a disabled field
    By NOTLguy in forum Forms
    Replies: 9
    Last Post: 01-02-2011, 04:58 PM
  3. Formatting of disabled fields
    By Remster in forum Forms
    Replies: 2
    Last Post: 11-12-2010, 07:03 AM
  4. Replies: 1
    Last Post: 02-04-2010, 11:17 AM
  5. SWITCHBOARD MANAGER DISABLED ALL THE MENU AND EDIT OPTION
    By ranjit_dutt in forum Programming
    Replies: 0
    Last Post: 04-13-2007, 08:39 AM

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