If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Why am I getting related record required errors for optional FKs
I have a table with several foreign keys that are not required, but whenever
I attempt to add a record without the FKs set I get the error message "You cannot add or change a record because a related record is required in table 'tblFoo'." When the FK for tblFoo is the optional FK parameter. |
#2
|
|||
|
|||
Why am I getting related record required errors for optional FKs
Open the table in design view.
Select the FK field. In the lower pane, remove the zero default value. (MS has solved this in Access 2007: numeric fields don't default to zero automatically.) -- Allen Browne - Microsoft MVP. Perth, Western Australia Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Dan Neely" wrote in message ... I have a table with several foreign keys that are not required, but whenever I attempt to add a record without the FKs set I get the error message "You cannot add or change a record because a related record is required in table 'tblFoo'." When the FK for tblFoo is the optional FK parameter. |
Thread Tools | |
Display Modes | |
|
|