K
KHV
How can I disable 'Print' in the file menu and on the toolbar ?
Thank's,
Kjartan
Thank's,
Kjartan
KHV said:How can I disable 'Print' in the file menu and on the toolbar ?
KHV said:Sorry, I should have explained a little better what I want to do...
I need information on how to disable/enable the 'Print' selection by code. I
want the disable the Print option while viewing forms and enable the Print
option while viewing reports...
Marshall Barton said:Sorry, terribly sloppy with my Copy Paste and grabbed the
wrong line.
That error usually means that the bar or control name is
wrong, but even though I posted the wrong line, it should
not have caused an error.
Here's the one I meant to copy:
Application.CommandBars("Menu
Bar").Controls("File").CommandBar.Controls("Print...")
all on one line of course.
--
Marsh
MVP [MS Access]
I tried your code in the Form_Current function, but for both code lines I
get: Run-time Error '5': Invalid procedure call or argument