I am working in Access 2010.
I am trying to show a custom ribbon when a report is opened in Print Preview mode.
I have created a custom ribbon called Print and Send. This ribbon shows only 4 options. (see image)
The report is opened from a Reports Dashboard that hides all the ribbons and windows using the following On Load event:
Expand|Select|Wrap|Line Numbers
- Private Sub Form_Load()
- 'Hide the menus and Objects
- Dim i As Integer
- For i = 1 To CommandBars.Count
- CommandBars(i).Enabled = False
- Next i
- DoCmd.ShowToolbar "Ribbon", acToolbarNo
- DoCmd.ShowToolbar "Menu Bar", acToolbarNo
- DoCmd.SelectObject acTable, , True
- DoCmd.RunCommand acCmdWindowHide
- End Sub
Expand|Select|Wrap|Line Numbers
- Private Sub PipelineReportBtn_Click()
- DoCmd.OpenReport "r_PipelineReport", acViewPreview, , , acWindowNormal
- DoCmd.ShowToolbar "Print and Send", acToolbarYes
- End Sub
In the Report Design, there are no options available in the dropdown for Ribbon Name, Toolbar or Menu bar. properties.
In the Current Database Options window, there are no options available in the dropdown for Ribbon Name. Allow Full Menus and Allow Default Shortcut Menus options are both checked.
I would appreciate any insight regarding how to make this custom menu accessible.
Many thanks,
Sandra