I have seen many posts related to this but not one specific to mine. If there is one I apologize for taking everyone's time.
I have an SQL Server 2005 database with InfoPath 2007 SP 1. In the database I have one table (demographics) with a primary key that has a simple relationship to about 10 other tables. My InfoPath form has a non-repeating section for the demographics table and repeating sections for the other tables.
Entry of a record into the demographics and other tables works fine. When I open an existing record, edit either the demographics table or one of the other tables, I receive the following error:
Violation of PRIMARY KEY constraint 'PK_demographics'. Cannot insert duplicate key in object 'dbo.demographics'.
I don't want to insert at this point, I want to update. How can I do this?
Thanks in advance and best regards,
John