After searching a long time.... I found no answer to my question. So here it is.
I have a table with:
[InvoicesID](Autonumber);[ContactID](Number);[Date](date);[InvoicesNumber](Number);[InvoicesCal](Calculated)
At the moment I have a calculation:[ContactID]+100&"-"&Year([Date])&"-"&[InvoicesNumber]=[InvoicesCal]
[ContactID] is also my customer number. [Date] the year. [InvoicesNumber] is a manual input.
[InvoicesCall has to be a unique calculation.
As an example:106-2013-001 This has to be a unique calculation.
Another example:108-2013-001
Another example:106-2013-002
My problem is the manual input of the field [InvoicesNumber]. Chance of human error with results in a not unique calculation.
I need [InvoicesNumber] to be like an autonumber but individual for every [ContactID].
What is the best approach here?
I have a table with:
[InvoicesID](Autonumber);[ContactID](Number);[Date](date);[InvoicesNumber](Number);[InvoicesCal](Calculated)
At the moment I have a calculation:[ContactID]+100&"-"&Year([Date])&"-"&[InvoicesNumber]=[InvoicesCal]
[ContactID] is also my customer number. [Date] the year. [InvoicesNumber] is a manual input.
[InvoicesCall has to be a unique calculation.
As an example:106-2013-001 This has to be a unique calculation.
Another example:108-2013-001
Another example:106-2013-002
My problem is the manual input of the field [InvoicesNumber]. Chance of human error with results in a not unique calculation.
I need [InvoicesNumber] to be like an autonumber but individual for every [ContactID].
What is the best approach here?
Comment