Custom Toolbar and Print

  • Thread starter Thread starter Junior
  • Start date Start date
J

Junior

hi I created a custom reports toolbar with the printer icon and some others
and disabled the default tool bar-
I now have a user that wants the printer dialog to appear in order to select
a different printer.
How can i add the print option (opens the print dialog) to my custom
toolbar?
 
I use the following code for my custom menu bar for displaying the print
dialog:

Function DisplayPrintDialog()

On Error Resume Next
DoCmd.SelectObject acReport, Screen.ActiveReport.Name
DoCmd.RunCommand acCmdPrint

End Function


The "selectObjectr" is NOT needed, but if you have any form open with a
timer event, then you do need the selectObject command to fix a focus bug.
 
Back
Top