The primary key is an automatic generated number in the database and that primary key is related throughout the child tables. I wanted it to submit to a database first because i want to use lookup tables (created with views) to pull in some last submitted default information. I have actually disabled all of those trying to resolve this problem but that's the primary reason I want it to go to the database first. Another edit team will pull up each submitted document and make corrections and resubmit those changes back to the database but it could be several days after the initial information is submitted to the database and that data needs to be available as soon as the forms are submitted.
The SharePoint name is generated by a concatenation of fields from the form which can change depending on what changes are made within the form but if the primary key is in the form, it shouldn't matter how many different SharePoint names you have... correct? I was actually trying to resolve the changine SharePoint names when I discovered what was happening with the form. I had a date field set to now(), converted it to a string and unchecked the box to recalculate, and concatenated it with the Primary key id. This way it wouldn't change.
Changes are being made to the form when I pull it up, but nothing that changes the primary ID.
I'm not sure if I understand what you're suggesting in the last paragraph. When you are speaking about Id are you referring to the primary id in the database table or the filename that is given to SharePoint. I need the information to go to the database first, then to SharePoint, edited and resubmitted back to the same line with the primary key in the database. If I submit to SharePoint first, it won't have the primary key so what do you mean by "Also make sure you are setting your id on your initial submit to sharepoint BEFORE you submit it to the database and sharepoint".
SharePoint .... Database.... SharePoint ????
I have made sure I republished the form each time I've made changes to make sure that the new form being added is with the lates template.