I will pull the form up from SharePoint, enter the data, submit to the database and then it submits to the document library. The form is refreshing the values, therefore, overwriting my values before it goes to SharePoint. The field is a dropdown selection with the formula as the default value so it will prepopulate the names with the main crew. I tried using rules but they weren't working. I also have managed to do this without code but because of that, I've had resubmit issues when I've used rules. I got the form working very well with all the bells and whistles with it submitting to the database, but it was a whole different issue when the form was pulled back up in SharePoint to make any edits and resubmit back to the database. The crew values are coming from a secondary data source.
I can't attach the XSN file because it has company passwords in the form and I tried to attach some screen shots but was having difficulty. Here are my submit rules:
Sets a global field value to Y
Submits to the Main Database
Sets an Edited By field with Username()
Sets another field to say "Edit Mode"
Submits to SharePoint.