Using ASP web pages with MS Access 2000.
I have an Order table that requires a unique ID. Currently the insert uses (MAX + 1) to obtain next value but I recognise that this may fail occasionally because of multiple users. I can't use autonumber as the ID datatype because the user may choose to enter a specific value depending on their need (validated as unique of course).
How can I use the number entered into a textfield, or an autonumber in a different field or table (if user does not enter a value) to populate the ID field.
My main problem is how to take value from a field or table, increment it for next time and then insert it along with the other fields to the Order table.
Any ideas will be much appreciated.
leonv8
I have an Order table that requires a unique ID. Currently the insert uses (MAX + 1) to obtain next value but I recognise that this may fail occasionally because of multiple users. I can't use autonumber as the ID datatype because the user may choose to enter a specific value depending on their need (validated as unique of course).
How can I use the number entered into a textfield, or an autonumber in a different field or table (if user does not enter a value) to populate the ID field.
My main problem is how to take value from a field or table, increment it for next time and then insert it along with the other fields to the Order table.
Any ideas will be much appreciated.
leonv8