G
Guest
I don't want the standard access menu bar showing when my application is in
production mode. I detect whether I'm in production mode by checking to see
if the Database window is turned on in the startup options. Here's the code I
am using:
If CurrentDb.Properties("StartupShowDBWindow") Then
DoCmd.ShowToolbar "Menu Bar", acToolbarYes
Else
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
End If
This works fine when I am in testing mode - I show the DB window at startup,
and the menu bar is there. When i distribute the appl to customers I change
the startup options so that the DB window is not shown. Then, when I start
the appl in 'production' mode this doesn't work - the menu bar is still
there. But when I start the appl and hold the shift key down to override the
startup options for displaying the DB window so that I can debug, and then
start my splash screen (where the code for startup is) which then shows my
main menu, the menu bar isn't there! Should I be handling this some other
way? I can't figure out why this isn't working in 'production' mode. Any help
is appreciated. Thanks.
Jim B
production mode. I detect whether I'm in production mode by checking to see
if the Database window is turned on in the startup options. Here's the code I
am using:
If CurrentDb.Properties("StartupShowDBWindow") Then
DoCmd.ShowToolbar "Menu Bar", acToolbarYes
Else
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
End If
This works fine when I am in testing mode - I show the DB window at startup,
and the menu bar is there. When i distribute the appl to customers I change
the startup options so that the DB window is not shown. Then, when I start
the appl in 'production' mode this doesn't work - the menu bar is still
there. But when I start the appl and hold the shift key down to override the
startup options for displaying the DB window so that I can debug, and then
start my splash screen (where the code for startup is) which then shows my
main menu, the menu bar isn't there! Should I be handling this some other
way? I can't figure out why this isn't working in 'production' mode. Any help
is appreciated. Thanks.
Jim B