Hi everybody,
I have a SQL db that i recently upsized from Access. my table relationship worked fine in Access but i'm having trouble in SQL.
my table structure includs one "Main" table with a primary key field that was related to three "Sub" tables all connected on the primary key and all three are one-to-many with the "Main" table.
Now that the db is on SQL (I am still working in Access with linked tables) when i go to add a record to one of the "Sub" tables via subform i recieve the following error
'The INSERT statement conflicted with the FOREIGN KEY constraint "FK_tblTitleInfo_tblTractInfo" The conflict occurred in database "GMXPropertyBaseSQL", table "dbo.tblTractInfo", column 'TractName', (#547)
TractName is the primary key field on tblTractInfo which is the "Main" table. I didnt' think that i was inserting any records on that table, I would think that the record is being inserted into dbo.tblTitleInfo, the sub table.
Please shed some light on me its so very dark here.
Thank you!
Lost
I have a SQL db that i recently upsized from Access. my table relationship worked fine in Access but i'm having trouble in SQL.
my table structure includs one "Main" table with a primary key field that was related to three "Sub" tables all connected on the primary key and all three are one-to-many with the "Main" table.
Now that the db is on SQL (I am still working in Access with linked tables) when i go to add a record to one of the "Sub" tables via subform i recieve the following error
'The INSERT statement conflicted with the FOREIGN KEY constraint "FK_tblTitleInfo_tblTractInfo" The conflict occurred in database "GMXPropertyBaseSQL", table "dbo.tblTractInfo", column 'TractName', (#547)
TractName is the primary key field on tblTractInfo which is the "Main" table. I didnt' think that i was inserting any records on that table, I would think that the record is being inserted into dbo.tblTitleInfo, the sub table.
Please shed some light on me its so very dark here.
Thank you!
Lost