P
Pieter
I want to use Infopath to create Field Tickets. I need to generate a
sequential number automatically everytime I fill out a new form.
sequential number automatically everytime I fill out a new form.
Jerry Thomas said:Search this Newsgroup for earlier information but here's a quick recap.
Create a seperate file with just the ticket number.
Using script, open the file, increment the number then save and close the
file.
Don't forget to include code for issues such as retries when the file is
busy.
You can get unique, sequential numbers using a combination of users ID and a
date and time stamp, but that probably wouldn't be a good option for ticket
numbers.
--
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.
Pieter said:I want to use Infopath to create Field Tickets. I need to generate a
sequential number automatically everytime I fill out a new form.
Why not Use the XPath generate-id() to create a Unique ID on first open the
store it to what ever data source your using...