ACC2: AddNew Method Uses Table Default Values

ID: Q115898


The information in this article applies to:
  • Microsoft Access 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
Issue type :


Last Reviewed: April 3, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.