Another way to have the number generated, but not sequential, is to use a
combination of date and time and employee ID. (Employee initials might be
duplicated)
If you need sequential, you don't have to use a database. You can accomplish
this with just a seperate XML form that only has the counter. Using code,
you can get the value and then increment it each time. This is a lot more
involved as you have to code retries if the file is locked.
--
Jerry Thomas[MSFT]
<
[email protected]>
Microsoft Office InfoPath
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
Gene Griffe said:
I have created our Purchase Request from in InfoPath and need to have the
Requisition Number be automatically generated each time the form is opened.
Is there an easier way than creating a database just for the Requisition
Number? Any assistance would be greatly appreciated.
Gene