Forum Discussion

adriankuchta's avatar
adriankuchta
Copper Contributor
Jun 04, 2025
Solved

ACCDE File - Hide Everything

Hello

I have a database for which I want to hide the navigation pane and the menu ribbon (everything) in a ACCDE file.
I just want my Home Page Form to open when the link to the app is selected and nothing else is visible.

DoCmd.ShowToolbar "Ribbon", acToolbarNo does not work.

I have tried a link on one of the previous answers and error 404 came up.
Help would be greatly appreciated.

Kindest regards

Adrian

16 Replies

  • arnel_gp's avatar
    arnel_gp
    Iron Contributor

    maybe you should check your startup code again. renaming it to .accdr will not result to any error.

    remove/comment out all "On Error Resume Next" lines and compile your code.

     

    btw,  I tested:

     

    DoCmd.ShowToolbar "Ribbon", acToolbarNo

     

    and it did work on hiding the ribbon.

  • adriankuchta's avatar
    adriankuchta
    Copper Contributor

    Hi Everyone.

    The .accdr file change did the trick. I don't know how the error was fixed but when I closed the database twice and re-opened it there was no error, and everything is locked tight.

    Thanks to everyone who contributed to fixing my problem.

    It is greatly appreciated.

    Kindest regards

    Adrian.

  • arnel_gp's avatar
    arnel_gp
    Iron Contributor

    merely renaming to .accdr will not cause any errors.

    maybe your startup code has some errors. try compiling your db first.

    and make sure to comment out code like:

     

    On Error Resume Next

     

    BTW, i tested:

    DoCmd.ShowToolbar "Ribbon", acToolbarNo

     

    and it did hide the ribbon. so the problem is that somewhere you have

    errors and you disable the error handler.

    • adriankuchta's avatar
      adriankuchta
      Copper Contributor

      Hi arnel_gp

      The .accdr file change did the trick. I don't know how it was fixed as I closed the database twice and the third time there was no error. Everything is lock up tight.

      Thanks to you and everyone who contributed to my problem. It is greatly appreciated.

      Kindest regards

      Adrian

    • adriankuchta's avatar
      adriankuchta
      Copper Contributor

      Hi arnel_gp

      The .accdr file change did the trick. I don't know how it was fixed as I closed the database twice and the third time there was no error. Everything is lock up tight.

      Thanks to you and everyone who contributed to my problem. It is greatly appreciated.

      Kindest regards

      Adrian

  • arnel_gp's avatar
    arnel_gp
    Iron Contributor

    rename your .accde as .accdr (runtime)

  • For Hide the Ribbon, how about :

     

    Application.CommandBars("Ribbon").Visible = False

     

Resources