I have a database which I am publishing data to from an Infopath form. I'm able to input all of the data without a problem, and just added an auto-incrementing primary key (scan ID) in the database table. I also want to show that ID (so it would be the max ID in the table +1) every time the form is opened to add a record to the database...
SO...if the current records in the table were:
Scan ID Field 1 Field 2 Field 3
1 blah blah2 blah3
2 blah blah2 blah3
Therefore, when the form is opened, I would need it to be:
Scan ID: 3 ---> this field would autopopulate max(scanID) +1
Then my input data.
Once submitted, the data would be sent to the database....does this make sense? Let me know if I can clarify. Thanks!