Custom Toolbar and Print

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?
 
A

Albert D. Kallal

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top