Hi,
I am having some trouble with Referential Integrity, hopefully somebody can help me in the right direction.
I have two tables, 1.) tblA with products and 2.) tblB with the corresponding demand of the product. The two tables are linked together with ProductId column.
My goal is to have a query with column Product from tblA and Demand from tblB and when I fill in a new product and/or demand, TblB is also automatically filled with ProductID. With local tables, i have managed this with Referential Integrity, please see the attached file and "testqry". However, my real database consists of SQL server tables and I am using SMSS. Unfortanetely, I am not able to reproduce the Referential integrity in SQL server. So when I make the same database with the linked tables, I get the error "Cannot add a record. The primary key of dbo_tblB does not exist in the recordset". I have used the below following settings in the relationship settings.
Does somebody know what is causing the problem? I have tried different settings for the Delete / Update rule, but i am unable to get it working properly.
Thank you!
I am having some trouble with Referential Integrity, hopefully somebody can help me in the right direction.
I have two tables, 1.) tblA with products and 2.) tblB with the corresponding demand of the product. The two tables are linked together with ProductId column.
My goal is to have a query with column Product from tblA and Demand from tblB and when I fill in a new product and/or demand, TblB is also automatically filled with ProductID. With local tables, i have managed this with Referential Integrity, please see the attached file and "testqry". However, my real database consists of SQL server tables and I am using SMSS. Unfortanetely, I am not able to reproduce the Referential integrity in SQL server. So when I make the same database with the linked tables, I get the error "Cannot add a record. The primary key of dbo_tblB does not exist in the recordset". I have used the below following settings in the relationship settings.
Does somebody know what is causing the problem? I have tried different settings for the Delete / Update rule, but i am unable to get it working properly.
Thank you!