ACC2: AddNew Method Uses Table Default Values

Last reviewed: June 8, 1997
Article ID: Q115898
The information in this article applies to:
  • Microsoft Access version 2.0

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

The documentation for the AddNew method in Microsoft Access version 2.0, states the following for when you add a new record using the AddNew method,

   This method sets the fields to Null (the default values specified for a
   table-type Recordset in Design view of the corresponding table aren't
   used).

This statement is incorrect.

RESOLUTION

The documentation should state the following:

   This method sets the fields to either Null or to the default value
   specified in Design view of the corresponding table.

When you add a new record using the AddNew method, the default values in a table are used since default values are enforced at the database-engine level in Microsoft Access version 2.0. In Microsoft Access version 1.x, default values are not used when you add a new record using the AddNew method.

REFERENCES

Microsoft Access "Language Reference," version 2.0, Appendix B, "Data Access Reference," page 666

For more information about the AddNew method, search for "AddNew" then "AddNew Method (Data Access)" using the Microsoft Access Help menu.


Keywords : kbprg MdlEdit
Version : 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbdocerr
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.