here form code is there plz help me...
I can't save the data
i am having this error so what can i doo...
here form code is there plz help me...

here form code is there plz help me...
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sunny SharmaRank #223 · 11.1K reputationPosted Jul 31, 2013, 3:46 AM EDT
The way a Foreign Key works is it cannot have a value in that column that is not also in the primary key column of the referenced table.
In your table dbo.tbl_house you have a foreign key reference of column 'house_id' to the table tbl_member. When you're trying to insert the values it is checking the "house_id" to be already in there inside 'tbl_member'.
Please ensure that the house_id you're trying to insert is already in 'tbl_member' and your query will work.
Happy Coding :)
Safeer Safeer171 reputationPosted Jul 31, 2013, 10:46 PM EDT