Autonumbers

D

Darcy

Does anybody know how to create automatically generated invoice numbers on an
infopath form that is linked to an access database?
 
A

Adam Harding

Darcy

OK Fiely simple, to get the unique number you can use the 'ID' field to
create the unique value. The question then becomes how do you get that value
from the access database and display it on the form.

I have one soluition i like, the user fills out the form and presses a
button, this button submits ALL the data to the database and assigns it an
'ID' number. I then have a message box appear saying "Your reference number
is '@ID', please keep this for future use." That way the database does the
work for me and i just show the results.

You could also have the submit to database point earlier in the form as well.

I hope this helps

Cheers Adam
 

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