Hi,
If your InfoPath solution is connected to an Access or SQL Server database,
then both of these offer "auto incrementing" fields that you could use in
your solution. (You could also implement the same functionality using a web
service that gets data from one of the databases.)
If not, then you will have to use custom functionality, such as:
1. During save, write this last used ID to a local file. Your solution
needs to be fully trusted or you will get a security warning based on the
zone.
2. Have a task pane and use one of IE's many storage mechanisms (e.g.
userdata, cookies, etc)
I hope this helps!
Scott L. Heim
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.