G
Guest
Hello!
I have a query where I want to format a field called “InvoiceNrâ€, according
to the current year and assign a value to all previous years. e.g.:
If the “InvoiceNr†is 103 and I generated the invoice in 01.01.2005, then I
will have a new value 2005/103
For this I use this format: Nr-Invoice: Rechts(Jahr([InvoiceDate]),4) & "/"
& ([InvoiceNr])
My problem is that for all invoices created before 01.01.2005, I want them
to appear with a 2004/. e.g.:
If the “InvoiceNr†is 19 and I generated the invoice in 01.10.2003, then I
will have a new value 2004/19
What is missing in my code?
Thanks for your help
I have a query where I want to format a field called “InvoiceNrâ€, according
to the current year and assign a value to all previous years. e.g.:
If the “InvoiceNr†is 103 and I generated the invoice in 01.01.2005, then I
will have a new value 2005/103
For this I use this format: Nr-Invoice: Rechts(Jahr([InvoiceDate]),4) & "/"
& ([InvoiceNr])
My problem is that for all invoices created before 01.01.2005, I want them
to appear with a 2004/. e.g.:
If the “InvoiceNr†is 19 and I generated the invoice in 01.10.2003, then I
will have a new value 2004/19
What is missing in my code?
Thanks for your help