ACC: Cannot Open Form to Disallow Adding New RecordsID: Q147154
|
Novice: Requires knowledge of the user interface on single-user computers.
When you open a form that has the AllowAdditions property set to No, the
form opens, allowing you to add records.
The form is being opened programmatically by the OpenForm action with the Data Mode argument in the macro set to "Edit." If you're using Visual Basic, the Data Mode argument is set to A_EDIT or acEdit.
Omit the Data Mode argument setting so that Microsoft Access uses the property settings defined by the form.
When the Data Mode argument of the OpenForm action is set, Microsoft
Access overrides a number of form property settings. If the Data Mode
argument of the OpenForm action is set to "Edit," Microsoft Access
opens the form using the following property settings:
Allow Edits: Yes
Allow Deletions: Yes
Allow Additions: Yes
Data Entry: No
Macro Action
-----------------------
OpenForm
Form Name: Customers
View: Form
Filter Name:
Where Condition:
Data Mode: Edit
Window Mode: Normal
For more information about OpenForm, search the Help Index for "OpenForm," or ask the Microsoft Access 97 Office Assistant.
Keywords : FmsProp
Version : 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 30, 1999