PRB: All New Field Values Set to .NULL. When You Modify TableID: Q130244 3.00 WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSAfter executing the ALTER TABLE command to add a new field to a table or after modifying a table manually, all of the field values for a new field are set to .NULL. for each record in the table.
CAUSEThis behavior occurs if NULL is set ON by using the SET NULL command.
RESOLUTIONIssue the SET NULL OFF command before executing an ALTER TABLE command or before modifying a table manually when using the Database Container.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior1. From the Command window, issue the following commands:
2. Browse the table to view the first record, and note the table structure.
Now the field value for cNewfld holds the value .NULL..
NOTE: Placing NOT NULL at the end of the ALTER TABLE command doesn't work if SET NULL is ON. Instead, the error message "Field NEWFLD does not accept null values" is displayed, and the field is not added. Additional reference words: 3.00 VFoxWin KBCategory: kbprg kbprb KBSubcategory: FxprgTable
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |