Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invioce auto number

Status
Not open for further replies.

xpaccess

MIS
Jul 22, 2002
13
US
how can I get an unbound text box to auto number (i.e. 1,2,3) and so on as new invoices are generated?

Any help would be GREAT.
 
Assuming that the invoice number is stored in a table, just retrieve the highest number from that field, add 1 to it, and assign it to the value of the text box. You could do this before saving the record or when you display a new record in the form. There are several ways to retrieve the highest number from a field in a table. Is this what you want to do? It would be easier to use a field that is bound to an Autonumber field in the table, but I guess you are using an unbound field for a reason? dz
dzaccess@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top