Jump: Search for: 

Free Resources from FMS

 

Thank you! Thank you! I just finished reading this document, which was part of a link in the recent Buzz newsletter. I have printed it for others to read, especially those skeptical on the powers of Access and its capabilities.

Darren D.

 

 

 

 

Disable Design Changes for Tables Before Deploying Microsoft Access 2007 Databases

Provided by: Aparna Pophale, Quality Assurance Assistant

A new feature in Microsoft Access 2007 lets people easily modify the structure of their tables without putting it into design mode. Simply add a column while viewing the datasheet. This makes it easy to change a table similar to the way people add columns to an Excel spreadsheet.

However, this is not desirable if you created a database and deploy it to people who shouldn't be making structural changes to your tables.

Let’s see how to make this feature enabled.

Click on Office 2007 button and then Access Options.

It opens Access Options form. Select the “Current Database” category and see the option “Enable design changes for tables in Datasheet view”. By default this is checked:

When this is enabled, there is an Add New Field column on the far right of the datasheet, and there are extra options to update tables. Open a table in datasheet view and right click on any field of the table to see the options to Insert, Delete, and Rename:

Disabling Design Changes from the Datasheet

This option should be turned off in applications you build for others. Having users accidentally or deliberately create, delete or rename fields can easily cause your application to crash. Changing a table's structure has implications for queries, forms, reports, macros, and modules that depend on those fields.

Simply uncheck this option under Access Options to prevent this from happening. This can also be set programmatically from the database object via:

CurrentDb.Properties("AllowDatasheetSchema") = False

After turning off this option and reopening the database, you'll see the right click menu on tables has more restricted options. The Add New Field column on the far right is also gone.

This tip and other ways to ensure you create great Access applications are found in Total Access Analyzer 2007.

Return to the tips page

 

Feedback

Contact Us  l   Web questions: Webmaster   l   Copyright © 2010 FMS, Inc., Vienna, Virginia
Celebrating 24 Years of Software Excellence