Custom Menu - Open Print Dialog

R

Rosco

I am trying to add a open print dialog to a custom menu. The options seem to
only allow the print without opening the dialog.

Is there a work around to this?

A2K SR-1 on Win2000 and A2k and SP-3 on XP SR2.

Thanks in advance
Rosco
 
J

Joan Wild

Rosco said:
I am trying to add a open print dialog to a custom menu. The options
seem to only allow the print without opening the dialog.

Is there a work around to this?

You should be able to copy from the existing File, Print menu to your custom
menu (just Ctrl-drag the item to copy it). If this is what you've tried and
it isn't working, then I'd take a guess that you have turned off 'Allow
built-in menus' in Tools, Startup. Once you uncheck that, then File, Print
will disappear from your custom menu.

If that's the case then 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
 
R

Rosco

Joan Wild said:
You should be able to copy from the existing File, Print menu to your custom
menu (just Ctrl-drag the item to copy it). If this is what you've tried and
it isn't working, then I'd take a guess that you have turned off 'Allow
built-in menus' in Tools, Startup. Once you uncheck that, then File, Print
will disappear from your custom menu.

If that's the case then 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

Thanks Joan.
I have to use a function as I do turn off built in menus.

Rosco
 
Top