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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.