C
ChrisM
Hi,
I'm writing a multi-user system that produces invoices with distinct
numbers.
I need a query that will produce these distinct numbers. My initial thought
was to use autonumbers or similar, but consider the folowing scenario:
User 1 Starts to create an invoice. Allocated Invoice number 0001.
User 2 Starts to create an invoice. Allocated Invoice number 0002.
User 1 Decides that they no longer want to create the invoice at this time,
so quit from the screen.
It is not acceptable for the system to have 'holes' in the invoice numbers
allocated, so the next time an invoice is required, it should be as 0001.
Then the one following that will be 0003 (as 0002 has already been created
by User 2 above).
Anyone got a suggestion as to a simple way of allocating numbers that work
like this? The ideal would be autonumbers that go back and fill in any empty
spaces, but I know they don't work like that...
Cheers,
Chris.
I'm writing a multi-user system that produces invoices with distinct
numbers.
I need a query that will produce these distinct numbers. My initial thought
was to use autonumbers or similar, but consider the folowing scenario:
User 1 Starts to create an invoice. Allocated Invoice number 0001.
User 2 Starts to create an invoice. Allocated Invoice number 0002.
User 1 Decides that they no longer want to create the invoice at this time,
so quit from the screen.
It is not acceptable for the system to have 'holes' in the invoice numbers
allocated, so the next time an invoice is required, it should be as 0001.
Then the one following that will be 0003 (as 0002 has already been created
by User 2 above).
Anyone got a suggestion as to a simple way of allocating numbers that work
like this? The ideal would be autonumbers that go back and fill in any empty
spaces, but I know they don't work like that...
Cheers,
Chris.