J
Jack Leach
Question:
I'm try to *immediately* hide the MS Access main menu bar in my startup
code. Under Tools -> Options I have my replacement set, and this works fine,
except the default menu doesn't get replaced with my custom menu until after
my startup code runs (this leaves anywhere from 1second to 5seconds of the
Access menu there during startup, which I would like to remove).
The following line produces an error:
Application.CommandBars("Menu Bar").Visible = False
Error: -2147467259(800004005)
Automation Error
Unspecified Error
I had thought to include this as one of the first lines in my startup to get
rid of it right off the bat...
Startup Summary...
Autoexec Macro
CheckRef() (reference verification)
AppLoad()
Hide main menu??? <----
Verify core files and connections, settings, etc
Load properties and settings
Set "logged out" state
(this is about where the menus visibly change)
Open user login form
End AppLoad
Any ideas on why it's taking access this long to replace the main menu with
my custom one, or how I can explicitly hide it on startup?
I suspect that this may be part of Access's load procedure(s) rather than my
projects load procedures, but would love to have that not visible during
*any* part of the startup, if at all possible.
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
I'm try to *immediately* hide the MS Access main menu bar in my startup
code. Under Tools -> Options I have my replacement set, and this works fine,
except the default menu doesn't get replaced with my custom menu until after
my startup code runs (this leaves anywhere from 1second to 5seconds of the
Access menu there during startup, which I would like to remove).
The following line produces an error:
Application.CommandBars("Menu Bar").Visible = False
Error: -2147467259(800004005)
Automation Error
Unspecified Error
I had thought to include this as one of the first lines in my startup to get
rid of it right off the bat...
Startup Summary...
Autoexec Macro
CheckRef() (reference verification)
AppLoad()
Hide main menu??? <----
Verify core files and connections, settings, etc
Load properties and settings
Set "logged out" state
(this is about where the menus visibly change)
Open user login form
End AppLoad
Any ideas on why it's taking access this long to replace the main menu with
my custom one, or how I can explicitly hide it on startup?
I suspect that this may be part of Access's load procedure(s) rather than my
projects load procedures, but would love to have that not visible during
*any* part of the startup, if at all possible.
Thanks,
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)