ACC2000: Upsizing Wizard Does Not Create Constraint for AllowZeroLength Property (227211)
The information in this article applies to:
This article was previously published under Q227211 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you upsize a table containing a field with the AllowZeroLength property set to No, the Microsoft Access 2000 Upsizing Wizard does not create a trigger or CHECK constraint in an attempt to enforce the rule.
RESOLUTION
After the Upsizing Wizard finishes, manually create a CHECK constraint or trigger to enforce the rule. To Create a CHECK Constraint- Complete the steps in the Steps to Reproduce Behavior section of this article to upsize the Employees table.
- Open the Access project that you created by following the instructions in the Steps to Reproduce Behavior section of this article.
- Open the Employees table in Design view.
- Right-click inside the Table Designer and click Properties.
- On the Tables tab, click New.
- In the Constraint expression box, type the following:
NOTE: There are no spaces between the apostrophes ('') in the sample above.
- Close the Properties dialog box, and then Save the table.
- Open the Employees table in Datasheet view.
- Change Nancy Davolio's last name to "".
- Move off the record. Note that you receive an error message.
REFERENCES
For more information about constraints, see the SQL Server "SQL Server Architecture," in SQL Server Books Online. To download the SQL Server Books Online, please visit the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kbdownload kbbug kbfix KB227211 |
---|
|