Hello -
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:
The Event to open the report is as follows:
When I open the report, I get the error saying that the database cannot find the Print and Send toolbar.
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
[imgnothumb]http://bytes.com/attachments/attachment/6408d1338567069/ribbon.png[/imgnothumb]
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:
Code:
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
Code:
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
[imgnothumb]http://bytes.com/attachments/attachment/6408d1338567069/ribbon.png[/imgnothumb]
Comment