Form event on printing

mary.h

Registered User.
Local time
Today, 13:25
Joined
Aug 21, 2003
Messages
48
Hi all,
I want the switchboard being prevented from any attempt to print it out. Assume that the switchboard has the focus and the user presses the print command button on the Access-Menu, than the it should just do nothing. Currently the form view is switched to print preview and the user can only close the form and the switchboard is no longer "existing", that's why I put the quit database command in the form_close - event.

I was thinking of any form event which is fired if the user presses the print-menu-button, or a form property which could be set but could not find any.

Does anybody out there has an idea. I would be really thankful.
Kind regards,
Mary :-).
 
If you don't want them using the menus to print then you should build a custom menu bar / toolbar for the switchboard that doesn't include the print button.

You will probably also need to stop the shortcut Ctrl + P combinations too. Look into the form's Key Press event plus turn on Key Preview.
 
Hi VBAInet,

thank you for your answer. I was afraid, that this is the only solution. But good to know, that I didn't overlook other ways.

Best regards
 

Users who are viewing this thread

Back
Top Bottom