How do I create an auto-increment box in an InfoPath form?

P

Pat in Georgia

I have modified the Purchase Order request form in InfoPath. I would like
the reference block to automatically create an incremental id number whenever
someone submits a request.

How do I do this?
 
B

Ben Walters

Hey Pat
This is very possible, you will however need to have Service Pack 1
installed, and I'm also making the assumption that you are submitting your
forms to a SharePoint Form Library and that your Reference number in the form
is being used as a field in the form library. Basically what you will need to
do is create a data connection to your form library that retireves the
reference nubmers from the form library. Once you have this connection you
can then write some custom Submit code that takes the last refeence number
adds 1 then submits the form into the library.

If you need any more info or sample code let me know and I'll post some up

Cheers
Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top