ACC: Preventing Users from Adding New Records (95/97)ID: Q142185
|
Microsoft Access 7.0 and 97 have several new properties that give developers control over forms used for data entry. One of these properties is the AllowAdditions property. Developers can use this property to determine whether users can or cannot add new records to the underlying table.
You can set the AllowAdditions property under the Data tab of the form's
property sheet. The default setting is Yes (True or -1) and allows the
user to add new records. If you set this property to No (False or 0), the
user cannot add new records. The No setting disables the New Record
indicator on the toolbar and the Data Entry command on the Records menu.
The following example demonstrates how the AllowAdditions property works.
CAUTION: Following the steps in this example will modify the sample
database Northwind.mdb. You may want to back up the Northwind.mdb file or
perform these steps on a copy of the Northwind database.
For more information about other new properties in Microsoft Access,
type "new properties" in the Office Assistant, click Search, and then
click to view "What's New for Developers: Overview."
For more information about preventing new records from being added in
Microsoft Access 1.x and 2.0, please see the following articles here
in the Microsoft Knowledge Base:
Q112725 ACC2: Preventing Users from Adding New Records
Q100465 ACC1x: Preventing Users from Adding New Records
Additional query words: grayed greyed
Keywords : kbusage FmsProp
Version : 7.0 97
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: April 28, 1999