Hello everyone, my name is Ragnar and this is my first ever post on this forum! Let's hope it's a succesful one... ;)
Currently I'm working on an invoicing database in which I can register my customers (or partners) and also make invoices and purchase orders. So far, it does exactly what I want it to do, but I'm struggling with the invoice numbers. What I want to have is that whenever I make a new record, the next invoice number in sequence is automatically assigned to it. Another desire is that this number is prefixed with the current year, and the counter should reset with every new year. So, for example:
2015001
2015002
2015003
etc.
Then
2016001
2016002
etc.
Don't worry about the maximum of 999 invoices, because I won't ever go beyond that limit.
I hope my problem is clear, and that some of you can tell me something more about it, preferrably step-by-step. If you want more details or perhaps the entire database, just ask.
Thanks in advance!
Automatic increment and reset
Currently I'm working on an invoicing database in which I can register my customers (or partners) and also make invoices and purchase orders. So far, it does exactly what I want it to do, but I'm struggling with the invoice numbers. What I want to have is that whenever I make a new record, the next invoice number in sequence is automatically assigned to it. Another desire is that this number is prefixed with the current year, and the counter should reset with every new year. So, for example:
2015001
2015002
2015003
etc.
Then
2016001
2016002
etc.
Don't worry about the maximum of 999 invoices, because I won't ever go beyond that limit.
I hope my problem is clear, and that some of you can tell me something more about it, preferrably step-by-step. If you want more details or perhaps the entire database, just ask.
Thanks in advance!