Results 1 to 5 of 5
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    hide ribbon code error

    Hi

    my third foray into the Docmd region.

    After browsing the web and help files I came up with the code to hide the ribbon. It seemed this was what the autoexec was made for so I added it to my autoexec file.

    But to my total lack of surprise it failed to work telling me I had an end sub missing

    Would appreciate someone taking a look

    thanks



    Ian
    Attached Thumbnails Attached Thumbnails code.jpg   code2.jpg  

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Is there any other code in that module?

    There should at least be Option Compare Database at the top, in the header.

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    you have a function embedded in a sub

    remove the function line and change the end function to end sub

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Ajax View Post
    you have a function embedded in a sub
    ...
    HaHa I was staring straight at that and thinking, something doesn't look right.

  5. #5
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Thanks for the assist

    for some reason the runcode in the autoexec was not finding my function, Ieven typed the name in by hand.

    Now for some reason it's now appeared in the drop down menu so all is working

    cheers

    Ian

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

Similar Threads

  1. Hide the Ribbon Hot Key
    By Paul H in forum Access
    Replies: 4
    Last Post: 10-07-2015, 12:48 PM
  2. Ribbon Hide
    By msaccessdev in forum Programming
    Replies: 2
    Last Post: 10-27-2014, 12:13 PM
  3. Hide Sections of Access Ribbon
    By kazaccess in forum Programming
    Replies: 1
    Last Post: 08-19-2014, 10:09 PM
  4. Open form only, hide the ribbon bar.
    By kcmiuser in forum Access
    Replies: 3
    Last Post: 05-22-2013, 02:04 PM
  5. Un-hide Ribbon
    By mattellenburg in forum Access
    Replies: 0
    Last Post: 12-08-2011, 02:08 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