Hi Ricardo.
There are multiple ways to do this and it is easier with SQL express than
Access, I think anyway.
Typically you need to query the table, get the highest number (use the Max
function) and then do a +1 or plus random. The challenge though with multiple
users is that they each need to get a unique number even if they open the
form and take a long time to submit it again.
I would recommend you look at the Database Accelerator. If you are creating
an enterprise solution from a backend database then it is the best way to go.
It gives you many web services which allow you to query and submit to
multiple tables and databases. You can also then have SQL or SQL Express do
the autoincrement, this is the best way to eliminate the possibility of
duplicates.
http://www.qdabra.com
--
Thanks
Clay Fox
Qdabra Software
http://www.qdabra.com
InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com