How To Recieved A Unique Number From Access for an Infopath Contro

J

JoeQ

I am new to InfoPath and Access and not sure how to accomplish my issue. I
have designed a form for purchase orders and I need a unique number each time
a PO is filled out. My plan was to use Access to provide the form with the
PO number only. Basically when a user opens up the form Access needs to
provide the next available number for the form. Any help or ideas would be
helpful also my programing skills lack. Thanks in advance
 
P

Paresh

I am new to InfoPath and Access and not sure how to accomplish my issue.  I
have designed a form for purchase orders and I need a unique number each time
a PO is filled out.  My plan was to use Access to provide the form withthe
PO number only.  Basically when a user opens up the form Access needs to
provide the next available number for the form.  Any help or ideas would be
helpful also my programing skills lack.  Thanks in advance

I have not done this with Access but one way opf achieving this would
be to fetch the total number of records or highest primary key using
functions like count() or max() and then add 1 to it to get the next
number.

HTH.

Best Regards,
Paresh
http://www.openzeas.com/blogs/Paresh/default.aspx
 

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