Solved

Turn off Design View in VBA for Access 2007

Posted on 2010-09-16
4
1,322 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:marku24
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 75
ID: 33695795
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
0
 

Author Comment

by:marku24
ID: 33695985
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.
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 250 total points
ID: 33696011
You can ... turn off the Right Click menu for that form by setting the Form's ShortcutMenuBar property to No.

mx
0
 
LVL 75
ID: 33696057
Another way would be to create an ACCDE ... which does not allow Design changes, thus  that menu item would be grayed out.

mx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question