ACC2: AddNew Method Uses Table Default Values (115898)



The information in this article applies to:

  • Microsoft Access 2.0

This article was previously published under Q115898
Novice: Requires knowledge of the user interface on single-user computers.

SYMPTOMS

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.

Modification Type:MajorLast Reviewed:6/25/2002
Keywords:kbProgramming KB115898