In the real world, we have a set of numbered invoices.
No 2 invoices have the same number, and no invoice goes missing or thrown out. If it's cancelled it is labelled so.
So on to the database version of the invoice -
Currently my invoice number is generated by the very rough
i need some advice on how to prevent invoice numbers being deleted one way or another, or being rewritten / overwritten to protect them and keep their order.
No 2 invoices have the same number, and no invoice goes missing or thrown out. If it's cancelled it is labelled so.
So on to the database version of the invoice -
Currently my invoice number is generated by the very rough
Code:
Max([invoiceNumber]) +1
i need some advice on how to prevent invoice numbers being deleted one way or another, or being rewritten / overwritten to protect them and keep their order.