Link to home
Start Free TrialLog in
Avatar of marku24
marku24Flag for United States of America

asked on

Turn off Design View in VBA for Access 2007

I have an Access DB in which I truned off full menus.  Even with the menu options I turned off the user can still right click on the tab and has Design View as an option.  I would like to turn Design View off in VBA on the form Open event but there isn't an AllowDesignView = False command.  Is there another way to turn this option off?
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

In Access 2003 (before Ribbons), this is easy to do because you can easily create your own custom right click menus, and apply them to any Form ... on the fly for that matter.  IF ... you are still using an MDB inside of the A2007 environment, you could still do this.  Is that by chance the case?

mx
Avatar of marku24

ASKER

No, I am using an accdb.  It seems like something that would be easy to turn off since you can turn on and off other views.  I thought I was just missing something.
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another way would be to create an ACCDE ... which does not allow Design changes, thus  that menu item would be grayed out.

mx