ACC2: "#Name?" Error with SQL Server Tables and Main/SubformID: Q129464
|
If you move to a new record on a main form when both the main form and its
subform are based on attached SQL Server tables, you may receive the
following error message:
Duplicate value in index, primary key, or relationship. Changes were unsuccessful.
This behavior can occur when you set both the LinkMasterfields and LinkChildFields properties of the main form's subform control to linking fields that have the Integer data type and do not allow null values.
To work around this behavior, change the subform's linking field so that it
accepts null values in the underlying table. Even though the table accepts
null values, you can prevent users from entering them using one of the
following methods in the main/subform:
Additional query words: pound poundname
Keywords : kberrmsg kbusage OdbcSqlms
Version : 2.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 9, 1999