ACC: Nulls Allowed in Foreign Key with Referential Integrity (98789)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q98789 SUMMARY
Novice: Requires knowledge of the user interface on single-user computers.
Microsoft Access allows a Null value in a field that is the foreign key in
a relationship if referential integrity is enforced.
To prevent users from leaving the foreign key blank in Microsoft Access 97,
7.0, or 2.0, set its Required property to Yes. To prevent users from
leaving the foreign key blank in Microsoft Access version 1.x, add a table
level validation rule to the table on the "many" side of the relationship.
For an example, see the "Steps to Reproduce Behavior" section.
REFERENCES
For more information about data integrity, search the Help Index for
"referential integrity," and then "What is referential integrity" or ask
the Microsoft Access 97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbinfo KB98789 |
---|
|