ACC2: Cannot Add Record After Changing DefaultEditing PropertyLast reviewed: May 14, 1997Article ID: Q122673 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. If you open a form with the form's DefaultEditing property set to Can't Add Records, using Access Basic code from a global module to set the DefaultEditing property to Allow Edits will not cause the form to allow new records to be added.
RESOLUTIONOne way to work around this problem is to first set the DefaultEditing property to Data Entry, and then to Allow Edits. The following example demonstrates how to add a command button to a form that will set the DefaultEditing property so that you can add new records. CAUTION: Following the steps in this example will modify the sample database NWIND.MDB. You may want to back up the NWIND.MDB file, or perform these steps on a copy of the NWIND database.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access version 2.0. This problem no longer occurs in Microsoft Access version 7.0
MORE INFORMATION
Steps to Reproduce Problem
REFERENCESFor more information about the DefaultEditing property, search for "DefaultEditing" then "AllowEditing, DefaultEditing Properties" using the Microsoft Access Help menu.
|
Additional query words: insert
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |