Re: Bring up Print Options from Custom Toolbar Button
- From: "Joan Wild" <jwild@xxxxxxxxxxxxxxxx>
- Date: Thu, 10 May 2007 10:51:47 -0400
You can copy the File, Print item from the main menu to your custom menu (via Ctrl-drag), however if you turn off 'allow built-in menus' in Tools, Startup, you'll find that File, Print will disappear from your custom menu.
Instead of copying from the built-in menu to your custom menu, use a function, and assign it to the OnAction property of your menu item.
Public Function PreviewPrint()
DoCmd.RunCommand acCmdPrint
End Function
--
Joan Wild
Microsoft Access MVP
<cpocpo@xxxxxxxxxxx> wrote in message news:1178802649.752475.244190@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello..
I have a custom toolbar for my database.
When I use my "Report Switchboard" with command buttons, they all
Preview their respective reports. When I hit the custom toolbar Print
button, it prints the full report instead of allowing a choice to
print certain pages or select printer.
What I would like is when the toolbar Print button is pushed for a
particular report being previewed, it would bring up the Print option
box similar to what comes up using the normal Access menu (File>Print)
(Printer selection, print range, and number of copies). The same
button should also work whether a form or report is the thing on the
screen.
Any ideas?
V/R
LostGuy
- Follow-Ups:
- References:
- Bring up Print Options from Custom Toolbar Button
- From: cpocpo
- Bring up Print Options from Custom Toolbar Button
- Prev by Date: Re: How can I delete a linked table in Access 2007?
- Next by Date: Re: Help with table structure for manufacturing production counts
- Previous by thread: Bring up Print Options from Custom Toolbar Button
- Next by thread: Re: Bring up Print Options from Custom Toolbar Button
- Index(es):