Some further clarification:
I made a very simplified test case example. I made a connection to a SQL Server database for a Filler Form, no managed code, no rules, form stays open on submit, made it trusted, and included the 3 fields:
id
Submitted On
Submitted By
The form looks like this after I fill in data (sorry, I couldn't figure out how to paste an image):
id: ___________
Submitted On: 2/12/2013
Submitted By: This is me
When I clicked submit, the submission is successful and the form automatically updated, only I expect the id (primary key) to be populated with the next value in the table, 48. Instead, the form refreshes with the record of id 46 as follows:
id: 46
Submitted On: 2/11/2013
Submitted By: rr
In this test form the difference in id is always 2 (I expected 48 but got 46). In my original problem form the difference is always 5.
Can anyone explain this behavior? Or more to the point, how can I get the form to update with the correct record that I just submitted?
Thanks
Tony