Can you disable Access menu bar functions?

  • Thread starter JimBurke via AccessMonster.com
  • Start date
J

JimBurke via AccessMonster.com

Is there a way to disable File, Print from the menu bar on a form? I am not
using custom menu bars, just the standard Access ones. If there's a simple
way to just disable it, or capture it and cancel it, I'd like to be able to
do that, rather than creating a custom menu bar.
 
J

JimBurke via AccessMonster.com

Just as an FYI, I went to the example they had on the Microsoft Support site
and tried doing what they showed in their example, but I get a compile error
when I dim these:

Dim CBarMenu As CommandBar
Dim CBarCtl As CommandBarPopup

I have the MIcrosoft Access 9.0 Object Library checked in my references -
this is what the example says is needed in order to access the command bar
objects. Based on that example, I think I know what to do if I can get these
objects declared successfully. Is there a different library I need to
reference?
 
R

Rick Brandt

JimBurke said:
I only want to disable File, Print on one form.

Even if you do that the user only has to press Ctl-P to get the same
behavior. You would have to block that as well.
 
A

AccessVandal via AccessMonster.com

Yes, as Rick points out. You can use the form's "On Key...." event to lock
out.

I don't know of any API that might to that. Try google search. Makes no
difference anyway, the user can use a screen grab.
I only want to disable File, Print on one form.
Go to Tools - Startup - click on Advance button to show more. And to disable
the shift key
[quoted text clipped - 5 lines]
 

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