You can use the AllowAdditions property to specify whether a user can add a record when using a form.
Setting
The AllowAdditions property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
Yes | True (–1) | (Default) The user can add new records. |
No | False (0) | The user can't add new records. |
You can set the AllowAdditions property by using the form's property sheet, a macro, or Visual Basic.
Remarks
Set the AllowAdditions property to No to allow users to view or edit existing records but not add new records.
If you want to prevent changes to existing records (make a form read-only), set the AllowAdditions, AllowDeletions, and AllowEdits properties to No. You can also make records read-only by setting the RecordsetType property to Snapshot.
If you want to open a form for data entry only, set the form's DataEntry property to Yes.
When the AllowAdditions property is set to No, the Data Entry command on the Records menu isn't available.
Note When the Data Mode argument of the OpenForm action is used, Microsoft Access will override a number of form property settings. If the Data Mode argument of the OpenForm action is set to Edit, Microsoft Access will open the form with the following property settings:
To prevent the OpenForm action from overriding any of these existing property settings, omit the Data Mode argument setting so that Microsoft Access will use the property settings defined by the form.