PRB: ODBC - Call Failed Error When Appending Record in AccessLast reviewed: September 18, 1996Article ID: Q148721 |
The information in this article applies to:
SYMPTOMSIf you attach a FoxPro table to a Microsoft Access version 7.0 database, and do not fill all the fields in a new record, the following errors are displayed when you move off the record:
ODBC- Call Fail Field <field_name> does not accept NULL values CAUSEMoving the record pointer commits the data to the table. The data contains NULL values. However, the structure of the Visual FoxPro table does not allow NULL values, and changes cannot be saved to the Visual FoxPro table. The "AllowZero Length" property of a field in an Access table controls the default value of fields. When it is set to No, the default in Access version 7.0, fields are initialized to NULL. Therefore, if you append a new record and do not fill all of the fields, some fields will have a NULL value. This is causing the error message because the linked table does not allow NULL values.
WORKAROUNDYou can ensure that the fields in the Visual FoxPro table accept NULL values by checking the NULL setting in the Visual FoxPro Table Designer. Use the following step-by-step procedure to achieve this:
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: 1.00 vfoxwin 3.00 3.00b driver
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |