I have an InfoPath form with multiple views that I open inside a SharePoint library. The default view has a Submit button, and when clicked, it runs the following code:
' Some code to set values
Me.DataConnections(connectionName).Execute().
Application.Quit(True)
This works fine the first time. I'm ...