S
sbowman
I have all my toolbars hidden when my app opens up:
Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
'Hide the database window
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
Application.SetOption "ShowWindowsinTaskbar", False
I would like for my custom toolbar to show up when I open a report
so I have this in the report_open event:
DoCmd.ShowToolbar "MetricsReporting", acToolbarYes
I've done some debugging with the immediate window and found that
the showtoolbar method works if the menubars and toolbars are not
hidden. Is there a way to show just the one toolbar?
Dim i As Integer
For i = 1 To CommandBars.Count
CommandBars(i).Enabled = False
Next i
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
'Hide the database window
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
Application.SetOption "ShowWindowsinTaskbar", False
I would like for my custom toolbar to show up when I open a report
so I have this in the report_open event:
DoCmd.ShowToolbar "MetricsReporting", acToolbarYes
I've done some debugging with the immediate window and found that
the showtoolbar method works if the menubars and toolbars are not
hidden. Is there a way to show just the one toolbar?